diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 11:08:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 17:22:24 +0200 |
commit | f346bcf705829596bac5fd2c352ce40e24cd5fa2 (patch) | |
tree | 7c867f69b3f3d43e45d1d45e1ef9b255b8fbc40e | |
parent | smp: Delete _SMP_Request_other_cores_to_dispatch() (diff) | |
download | rtems-f346bcf705829596bac5fd2c352ce40e24cd5fa2.tar.bz2 |
score/i386: Fix _CPU_Fatal_halt()
-rw-r--r-- | 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 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)) \ ); \ } |