Re: Question: Using floating point in the kernel

From: Andi Kleen (ak@suse.de)
Date: Thu Sep 21 2000 - 17:30:27 EST


On Thu, Sep 21, 2000 at 11:28:26PM +0100, Alan Cox wrote:
> > > > It is sufficient when you do tsk->flags |= PF_USEDFPU first.
> > >
> > > Unless you sleep
> >
> > Unless I'm missing something the lazy FPU state save in the 2.4 switch_to will
> > do the right thing at least on x86. Your kernel FPU state will overwrite the
> > user FPU state in current, but that's ok because it is undefined anyways
> > (and you restore the correct state when you wake up again)
>
> 2.4 maybe. Im not totally sure on that code. 2.2 wont

We were actually talking about a hypothetical fully interruptible 2.5 kernel.

-Andi

-
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:25 EST