Re: How can I link the kernel with libgcc ?

Jes Sorensen
2006-03-10T10:18:55Z

>>>>> "Carlos" == Carlos Munoz <carlos@kenati.com> writes:

Carlos> I figured out how to get the driver to use floating point
Carlos> operations. I included source code (from an open source math
Carlos> library) for the log10 function in the driver. Then I added
Carlos> the following lines to the file arch/sh/kernel/sh_ksyms.c:

Bad bad bad!

You shouldn't be using floating point in the kernel at all! Most
architectures do not save the full floating point register set on
entry so if you start messing with the fp registers you may corrupt
user space applications.

You need to either write a customer user space app or use a table as
Arjan suggested.

Cheers,
Jes