Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2001 22:38:28 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Matthew Emmerton" <matt@gsicomp.on.ca>, <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Kernel area libmish stuff
Message-ID:  <003d01c0a913$923455b0$1200a8c0@gsicomp.on.ca>
References:  <Pine.BSF.4.10.10103091805250.62467-100000@mail.matriplex.com> <000b01c0a90a$e3287360$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
> > On Fri, 9 Mar 2001, Matt Dillon wrote:
> >
> > >     You can't safely do FP instructions in the kernel.  I do not
> > >     believe the FP context is saved/restored between processes in
kernel
> > >     mode, only from user mode.  The kernel saves and restores the fp
> state
> > >     in the few places it uses FP instructions (for memory copying).
> > >     In anycase, I think there'd be a problem here.
> >
> > The last time I tried using FP in a device driver, it caused kernel
> > panics (I hate it when that happens...)
>
> Seeing as the original requestor wanted to use FP functions to do number
> crunching in screen savers, would adding a few strategic FP save/restore
> calls in the syscons driver be enough to allow FP calculations in screen
> saver modules?

Please forget I ever said this. I took a look at what would be involved, and
it's wayyyy too deep for me to even begin about thinking about it.

--
Matt Emmerton


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003d01c0a913$923455b0$1200a8c0>