Re: How can I link the kernel with libgcc ?

Carlos Munoz
2006-03-10T18:03:13Z

Jes Sorensen wrote:

>>>>>>"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.
>E_OK
>Cheers,
>Jes
>
>
Hi Jes,

I wasn't aware that floating point registers are not save. I guess I
have no choice but to use a table.

Thanks,

Carlos Munoz