Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: syssrc/sys/lib/libkern/arch/m68k



>  > > 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



Home | Main Index | Thread Index | Old Index