Messages in this thread | | | Subject | Re: How can I link the kernel with libgcc ? | From | Jes Sorensen <> | Date | 10 Mar 2006 05:18:41 -0500 |
| |
>>>>> "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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |