pc386: adjust assembly in bsp_fatal_halt

This commit is contained in:
Gedare Bloom
2016-03-03 16:40:17 -05:00
parent 328bd350aa
commit daa303da3e

View File

@@ -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))
);