Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2002 14:51:24 -0700
From:      Nate Williams <nate@yogotech.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        Nate Williams <nate@yogotech.com>, arch@FreeBSD.ORG, Dan Eischen <eischen@vigrid.com>
Subject:   Re: Request for review: getcontext, setcontext, etc
Message-ID:  <15418.6236.977377.975054@caddis.yogotech.com>
In-Reply-To: <XFMail.020107134817.jhb@FreeBSD.org>
References:  <15418.5641.919327.356015@caddis.yogotech.com> <XFMail.020107134817.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> >> > Also, forgive my ignorance, but why are we using fnsave instead of
> >> > fsave?  From my reading of the x86 manuals, it would seem that there is
> >> > the possibility of getting bogus FPU results with fnsave (vs. fsave)
> >> > since by using fsave, we give the FPU a chance to finish up the current
> >> > FPU operations before we save the state?  I could see where they might
> >> > be a race where we might end up storing intermediate results of the FPU
> >> > in some instances.
> >> > 
> >> > Or, is there something else I'm missing?  (The reason I ask is that the
> >> > JDK uses fsave to be 'safe', but maybe it's not buying us anything other
> >> > than warm fuzzies. :)
> >> 
> >> I don't know :-)  That's what it was using when John Birrell was
> >> maintaining libc_r.  I can always change it...
> > 
> > How about it John?  Why the use of 'fnsave' when storing FPU context
> > vs. using fsave?
> 
> Hmm, wrong John.  You want jb@ I believe. :)

Right, sorry John.


Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15418.6236.977377.975054>