From: Pete L. <p_l...@ya...> - 2002-04-01 14:46:30
|
Hi all, I am compiling a kernel module that makes use of floating point, which I understand is not a good approach, but at the moment it's the best of a bad situation. This module is running on a 2.4.13-pre2 kernel on an ST40 (SH4) proc. GCC ver. 3.0.3. I have added a fair amount of "soft float" math routines to avoid the use of the floating point hardware, and I am compiling the module and kernel, using both the "-m4-nofpu" and "no-implicit-fp" flags. On assignment of a function returning a float type to a float type local variable, an "flds" is generated, and I end up in the kernel's do_fpu_state_restore() which is an error since I'm in kernel mode. Are there any other flags to make use of that will avoid the generation of floating point commands? I thought that "-m4-nofpu" was the same as "-m3", (SH4 with no FPU?), so it seems I have misunderstood something along the way. Thanks for your time. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ |