RE: why Does Kernel Module should not do Floating Point operation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2006-06-27 at 16:48 +0530, Manjunath_Naik wrote:
> Hi Jinesh
> 
> Thanks for your response.
> 
> Does this mean that when context switch occurs, the kernel always stores
> the FPU registers and status even though the particular process does not
> do any floating point operation?

exactly the opposite, the kernel does NOT store.

and because it doesn't store... if YOU use it in the kernel you
overwrite the userspace one... Which is bad.

(there's some really subtle issues in addition, like floating point
error handling etc)

you haven't said what you want to use floating point for.. if you do
maybe we can suggest alternative approaches to you...



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux