diff options
author | Gedare Bloom <gedare@rtems.org> | 2016-01-08 16:28:45 -0500 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2016-03-03 16:36:30 -0500 |
commit | 505dc617c82718f54e954890f279d10bab963305 (patch) | |
tree | 47766fad70a894cd8afe68b5bac996ecf9785525 /cpukit/score/cpu/i386/rtems/score/cpu.h | |
parent | i386: remove redundant CPP defines (diff) | |
download | rtems-505dc617c82718f54e954890f279d10bab963305.tar.bz2 |
i386: relocate fatal halt to bsp layer
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/i386/rtems/score/cpu.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cpukit/score/cpu/i386/rtems/score/cpu.h b/cpukit/score/cpu/i386/rtems/score/cpu.h index dc9deee953..84a8c97038 100644 --- a/cpukit/score/cpu/i386/rtems/score/cpu.h +++ b/cpukit/score/cpu/i386/rtems/score/cpu.h @@ -529,15 +529,8 @@ uint32_t _CPU_ISR_Get_level( void ); * + disable interrupts and halt the CPU */ -#define _CPU_Fatal_halt( _source, _error ) \ - { \ - uint32_t _error_lvalue = ( _error ); \ - __asm__ volatile ( "cli ; \ - movl %0,%%eax ; \ - hlt" \ - : "=r" ((_error_lvalue)) : "0" ((_error_lvalue)) \ - ); \ - } +extern void _CPU_Fatal_halt(uint32_t source, uint32_t error) + RTEMS_NO_RETURN; #endif /* ASM */ |