diff options
author | Gedare Bloom <gedare@rtems.org> | 2016-03-03 16:40:17 -0500 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2016-03-03 16:40:17 -0500 |
commit | daa303da3efddcc8d3b83092bd7f3ef8c3d4b793 (patch) | |
tree | 70bab42a1a052e773c4b11d21945efc71ba57aab /c/src/lib/libbsp/i386 | |
parent | i386: refactor libcpu/cpu.h into rtems/score/i386.h (diff) | |
download | rtems-daa303da3efddcc8d3b83092bd7f3ef8c3d4b793.tar.bz2 |
pc386: adjust assembly in bsp_fatal_halt
Diffstat (limited to 'c/src/lib/libbsp/i386')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c index efc93a0350..3e4f26386d 100644 --- a/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c +++ b/c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c @@ -12,7 +12,9 @@ void _CPU_Fatal_halt(uint32_t source, uint32_t error) { __asm__ volatile ( - "cli ; movl %0,%%eax ; hlt" + "cli\n\t" + "movl %0,%%eax\n\t" + "hlt\n\t" : "=r" ((error)) : "0" ((error)) ); |