Subject: Re: Floating point emulation
To: Peter Seebach <firstname.lastname@example.org>
From: David Laight <email@example.com>
Date: 11/06/2005 08:07:03
On Sat, Nov 05, 2005 at 11:20:47PM -0600, Peter Seebach wrote:
> In message <firstname.lastname@example.org>, "Nathan J. Willia
> ms" writes:
> >email@example.com (Peter Seebach) writes:
> >> On some BSD somewhere, I was once told to use floating point emulation in
> >> the kernel so that the kernel wouldn't have to save and restore floating
> >> point registers as often when processing system calls.
> >Right. By convention, the kernel isn't supposed to use hardware FP
> So the kernel already DTRT anyway? Or is this a separate option, such
> as -msoft-float?
You missed the point.
You aren't allowed to do FP calculations in the kernel.
(or use the FP registers for anything else)
Unless that piece of code explicitly saves them.
David Laight: firstname.lastname@example.org