[rtems commit] score/i386: Fix _CPU_Fatal_halt()

Sebastian Huber sebh at rtems.org
Tue Jul 30 15:17:12 UTC 2013


Module:    rtems
Branch:    master
Commit:    f346bcf705829596bac5fd2c352ce40e24cd5fa2
Changeset: http://git.rtems.org/rtems/commit/?id=f346bcf705829596bac5fd2c352ce40e24cd5fa2

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul 30 11:08:49 2013 +0200

score/i386: Fix _CPU_Fatal_halt()

---

 cpukit/score/cpu/i386/rtems/score/cpu.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h
index 30a9a64..d23926e 100644
--- a/cpukit/score/cpu/i386/rtems/score/cpu.h
+++ b/cpukit/score/cpu/i386/rtems/score/cpu.h
@@ -493,10 +493,11 @@ uint32_t   _CPU_ISR_Get_level( void );
 
 #define _CPU_Fatal_halt( _error ) \
   { \
+    uint32_t _error_lvalue = ( _error ); \
     __asm__ volatile ( "cli ; \
                     movl %0,%%eax ; \
                     hlt" \
-                    : "=r" ((_error)) : "0" ((_error)) \
+                    : "=r" ((_error_lvalue)) : "0" ((_error_lvalue)) \
     ); \
   }
 




More information about the vc mailing list