Re: How can I link the kernel with libgcc ?

From: Carlos Munoz
Date: Fri Mar 10 2006 - 13:00:34 EST


Jes Sorensen wrote:

"Carlos" == Carlos Munoz <carlos@xxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/