Are you running X-window?  If so, there's probably be a large number
of FP calculations you're unaware of.
Any sound cards?   Things like that are often stealth uses of
resources.

The real question isn't having your thread's FP registers saved for
it, but the possibility that your thread my corrupt the FPU state of
any other process using it.

        Norm





----- Original Message -----
From: Calin A. Culianu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 21, 2001 3:54 PM
Subject: [rtl] Should I setfp_np even I don't care about saving FPU
state?


>
> I was wondering if it's necessary to turn on FPU stuff for a
realtime
> kernel thread, if I do some basic floating point math but I don't
care
> about the state of floating point registers being saved across
iterations
> of a thread loop...?
>
> It seems to me that even though I don't care about the persistence
of
> double or float variables across thread invocations, if the FPU
isn't
> configured correctly strange unwanted CPU exceptions can occur.  Is
this
> so?
>
>
> :)
>
> -Calin
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to