[rtems commit] pc386: adjust assembly in bsp_fatal_halt
Gedare Bloom
gedare at rtems.org
Thu Mar 3 21:43:04 UTC 2016
Module: rtems
Branch: master
Commit: daa303da3efddcc8d3b83092bd7f3ef8c3d4b793
Changeset: http://git.rtems.org/rtems/commit/?id=daa303da3efddcc8d3b83092bd7f3ef8c3d4b793
Author: Gedare Bloom <gedare at rtems.org>
Date: Thu Mar 3 16:40:17 2016 -0500
pc386: adjust assembly in bsp_fatal_halt
---
c/src/lib/libbsp/i386/pc386/startup/bsp_fatal_halt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 efc93a0..3e4f263 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))
);
More information about the vc
mailing list