Problems of the corss-compiler.

Tom Roberts tjroberts at lucent.com
Tue Aug 29 06:34:32 EST 2000


Cal Erickson wrote:
> In the MSR of the PPC processor there is a bit
> that indicates whether there is hardware
> floating point unit available.

Beware -- Linux uses the bit to optimize FP-register usage in the
kernel. Basically it starts each process with the bit off, but turns
it on for a process which takes the "FP not avail" trap. The
optimization occurs in context switches where the FP registers are
not saved or restored for processes with this bit off.

This is, of course, for CPUs which have FP units.... IIRC the CPUs
without FP units have the bit hardwired to 0.


Tom Roberts	tjroberts at lucent.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list