Re: kernel-2.6 cvs patches
Loïc Lefort <[email protected]>
| Newsgroups | gmane.linux.ports.xbox.devel |
|---|---|
| Message-ID | <1087897204.891.3.camel@ws-loic> |
On Tue, 2004-06-22 at 00:51, Oliver Schwartz wrote:
> > drivers/video/xbox/{conexant,focus}.c make heavy use of
> > floating-point arithmetic, which, in-kernel, is a Bad Idea (tm).
>
> Can you give more information / links? Is there no safe way at all to
> use fixed point arithmetics in kernel?
>
You can use fixed-point but not floating point, see
linux-2.4.26/Documentation/DocBook/kernel-hacking.tmpl:
* No floating point or MMX
The FPU context is not saved; even in user context the FPU state
probably won't correspond with the current process: you would mess with
some user process' FPU state. If you really want to do this, you would
have to explicitly save/restore the full FPU state (and avoid context
switches). It is generally a bad idea; use fixed point arithmetic
first.
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com