lkml.org 
[lkml]   [2000]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question: Using floating point in the kernel
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.048 / U:1.776 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site