summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-30 11:08:49 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-30 17:22:24 +0200
commitf346bcf705829596bac5fd2c352ce40e24cd5fa2 (patch)
tree7c867f69b3f3d43e45d1d45e1ef9b255b8fbc40e
parentsmp: Delete _SMP_Request_other_cores_to_dispatch() (diff)
downloadrtems-f346bcf705829596bac5fd2c352ce40e24cd5fa2.tar.bz2
score/i386: Fix _CPU_Fatal_halt()
-rw-r--r--cpukit/score/cpu/i386/rtems/score/cpu.h3
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 30a9a641fb..d23926e94e 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)) \
); \
}