Subject: Re: CVS commit: syssrc/sys/lib/libkern/arch/m68k
To: None <thorpej@wasabisystems.com>
From: Matt Fredette <fredette@theory.lcs.mit.edu>
List: source-changes
Date: 03/22/2002 16:37:08
>  > > Does sun2 port use libgcc.a for kernel?
>  > 
>  > Yep.  
> 
> What do you need from libgcc in the kernel?

I need the 32-bit multiply and divide support functions
__mulsi3, __divsi3, __udivsi3, __modsi3, and __umodsi3.

> The way we do this on other platforms is to have the necessary support
> routines in libkern.

Ya, what this short Makefile.inc fragment does is extract their
objects from libgcc.a and then add them to libkern's OBJS, so they 
do end up in the libkern that things get linked with.  I guess we 
could write our own equivalent C or assembler replacements under 
sys/lib/libkern/arch/m68k, but I didn't think I had to.

Matt

-- 
Matt Fredette