Kernel: reenable interrupts before halting

This commit is contained in:
Thomas Veerman 2012-10-18 10:03:34 +00:00
parent 87de141141
commit aeda8e5c7b

View file

@ -19,10 +19,12 @@
#include "direct_utils.h" #include "direct_utils.h"
#include <machine/multiboot.h> #include <machine/multiboot.h>
void halt_cpu(void) void
halt_cpu(void)
{ {
asm volatile("dsb"); asm volatile("dsb");
asm volatile("wfi"); asm volatile("cpsie i");
asm volatile("wfi");
} }
void void
@ -31,15 +33,17 @@ reset(void)
while (1); while (1);
} }
__dead void arch_shutdown(int how) __dead void
arch_shutdown(int how)
{ {
while (1); while (1);
} }
#ifdef DEBUG_SERIAL #ifdef DEBUG_SERIAL
void ser_putc(char c) void
ser_putc(char c)
{ {
omap3_ser_putc(c); omap3_ser_putc(c);
} }
#endif #endif