[EMAIL PROTECTED] wrote:

> Tom, could you please explain why we can't use these instructions in kernel
> mode ?
> I thougth that Linux don't use FP due to performance reasons, but not
> because it's not allowed.
> RT Linux seems to have some FP restrictions as well, but I think this is
> due to the fact that FP instructions could cause exceptions, which might
> ruin RT responsiveness by a few usecs.
> :-)

Exceptions are one thing, the other is that the kernel doesn't save FPU
state
in the normal case (it does so lazily when switching user space apps).

You could do fsave;fninit by hand, but that would be unportable to other
archs and depending on where you do it would ruin some fast paths
(like lazy FPU switching 8-)). And fsave/frestore is expensive.

Tom

Reply via email to