RE: FPU problem urgent

"Randall" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
> - If you are using a preemptive OS, there should be some option to tell the
> OS that you are using FP. This will force the OS to save FP registers upon a
> context switch.
>
> - If inside an interrupt, re-enable FP as described above. You shouldn't do
> FP inside an ISR anyway.

Keep in mind that the OS will likely not have saved the FP registers for you, so
if you do FP inside an interrupt routine, you will be responsible for saving and
restoring the FP context.  Doing this wrong (or not at all) can lead to some
*very* strange apparently random bugs.

Randall Young
Senior Software Engineer
NavCom Technology, Inc
A John Deere Company



-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.