Subject: Re: Floating point in the kernel
To: Chris G. Demetriou <email@example.com>
From: Dr. Bill Studenmund <firstname.lastname@example.org>
Date: 09/18/1998 13:51:54
On 18 Sep 1998, Chris G. Demetriou wrote:
> > b) fixable?
> You can probably fix it, but again, it's not desirable that you do so.
> I doubt that NetBSD would buy back the fix, even if you do, but i'm
> not authoritative there.
> You won't be able to fix it as an LKM, though. you need to replace
> choice bits of existing code.
Would it be possible to let the lkm do floating point, assuming it's
sufficiently careful? I.E. how much as to change in the kernel to let code
I agree that in general we don't want to permit it, but it sounds like
this application needs it. So a viable compromise would be for the driver
to set some sort of soft interupt level to keep the scheduler from
switching to a different user process, saving the FPU state, and then
letting the code have at it. When the code's done, it just resets the FPU
state, and lowers the spl level.