Re: Question: Using floating point in the kernel

From: Brian Gerst (bgerst@didntduck.org)
Date: Wed Sep 20 2000 - 11:51:50 EST


Timur Tabi wrote:
>
> ** Reply to message from "Lyle Coder" <x_coder@hotmail.com> on Wed, 20 Sep 2000
> 01:50:05 GMT
>
> > You cannot use MMX registers in the kernel either, since the kernel doesen't
> > save and restore FX state (fxsave, fxrstor) either (just like
> > (fsave/frstor).
>
> But what about these source files:
>
> include/asm-i386/mmx.h (which several other header files, like asm-i386/page.h,
> include)
> arch/i386/lib/mmx.c
> arch/i386/lib/usercopy.c
>
> It appears that MMX is being used in the kernel already.

Only under carefully controlled conditions. The MMX copy routines are
only used when the overhead of saving the user floating point register
state can be marginalized by the size of the copy.

--

Brian Gerst - 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:23 EST