Re: Question: Using floating point in the kernel

From: John Alvord (jalvo@mbay.net)
Date: Thu Sep 21 2000 - 06:36:17 EST


On Wed, 20 Sep 2000 22:37:29 -0700, "Lyle Coder" <x_coder@hotmail.com>
wrote:

>Hi
>The real issue is that if you use MMX or FP state, the kernel _must_ save
>and restore the original state other wise user programs will see corruption.
>We all know this too well since redhat's 6.1 (I think) kernel had this
>optimized MMX functions that _screwed_ up user programs. The fact is... it
>is tricky to save and restore state (device not available and all).
>The basic kernel itself does not provide support for kernel code to use
>these registers. If some device drivers or some modifications to the kernel
>are using it.. then I hope they have the save/restore path right

A 2.5-time problem is that portions of the kernel are planned to
become interruptible... so saving and restoring around a certain usage
would be insufficient.

john
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:24 EST