Coldfile and Floating Point Context

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Mar 16 10:03:59 UTC 2009


Hi,

I have problems with an initialization task with enabled floating point (which
is needed for the global C++ constructors).  The call to
_CPU_Context_restore_fp results in an exception because it tries to execute a
floating point instruction with DF set in the CACR register (= disabled
floating point).  Why is the floating point unit not enabled in the
restore/save FP routines?  On the PowerPC platform the FP unit will be enabled
during a restore/save since a FP context switch may occur in an ISR or
exception handler when the FPU is not available.  Is this different on the
ColdFire?  Where is the right place to enable the FP unit?

Have a nice day!

-- 
Sebastian Huber, Embedded Brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list