EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: compiler bug in gcc version 2.8.1 (Tornado1) for PPC corrupts floationg point constants?
From: Kay-Uwe Kasemir <[email protected]>
To: "'EPICS Tech Talk'" <[email protected]>
Date: Thu, 10 Feb 2005 09:11:04 -0500
Hello:

Having learned the hard way,
I'm now quite aware of the VX_FP_TASK option
for vxWorks' taskCreate().

To be save inside ISR code, no matter how the compiler
optimizes your non-floating point code:
Are there vxWorks subroutines or asm(...)-type macros that allows
me to save/restore the FP registers?
If not, does anybody know the asm(..) lines that would work on
a PPC CPU?

Thanks,
-Kay

On Feb 9, 2005, at 13:02, J. Frederick Bartlett wrote:
Jeff,
...we did discover during the investigation that a FP register's contents was being altered during the execution of the driver's interrupt service routine (ISR) and that, even though no FP operations were being performed in the ISR, the compiler optimization level that we were using caused the FP registers to be used to store temporary values.
...Jeff Hill wrote:
interrupt service routines as, on vxWorks, the FP
register contents are not saved / restored when

entering

/ exiting interrupt context. The driver must do this
manually if it finds a need to use FP in its ISR.


Replies:
Re: compiler bug in gcc version 2.8.1 (Tornado1) for PPC corrupts floationg point constants? Dirk Zimoch
References:
RE: compiler bug in gcc version 2.8.1 (Tornado1) for PPC corrupts floationg point constants? Jeff Hill
Re: compiler bug in gcc version 2.8.1 (Tornado1) for PPC corrupts floationg point constants? J. Frederick Bartlett

Navigate by Date:
Prev: RE: Browsing the ioc error log file Gournay Jean-Francois
Next: Re: compiler bug in gcc version 2.8.1 (Tornado1) for PPC corrupts floationg point constants? Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: compiler bug in gcc version 2.8.1 (Tornado1) for PPC corrupts floationg point constants? J. Frederick Bartlett
Next: Re: compiler bug in gcc version 2.8.1 (Tornado1) for PPC corrupts floationg point constants? Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·