Kernel: reenable interrupts before halting
This commit is contained in:
parent
87de141141
commit
aeda8e5c7b
1 changed files with 11 additions and 7 deletions
|
@ -19,9 +19,11 @@
|
|||
#include "direct_utils.h"
|
||||
#include <machine/multiboot.h>
|
||||
|
||||
void halt_cpu(void)
|
||||
void
|
||||
halt_cpu(void)
|
||||
{
|
||||
asm volatile("dsb");
|
||||
asm volatile("cpsie i");
|
||||
asm volatile("wfi");
|
||||
}
|
||||
|
||||
|
@ -31,13 +33,15 @@ reset(void)
|
|||
while (1);
|
||||
}
|
||||
|
||||
__dead void arch_shutdown(int how)
|
||||
__dead void
|
||||
arch_shutdown(int how)
|
||||
{
|
||||
while (1);
|
||||
}
|
||||
|
||||
#ifdef DEBUG_SERIAL
|
||||
void ser_putc(char c)
|
||||
void
|
||||
ser_putc(char c)
|
||||
{
|
||||
omap3_ser_putc(c);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue