From: Thomas Veerman Date: Thu, 18 Oct 2012 10:03:34 +0000 (+0000) Subject: Kernel: reenable interrupts before halting X-Git-Tag: v3.2.1~252 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-dsfromkey.html?a=commitdiff_plain;h=aeda8e5c7b48d63030db8fa61505908913bfc184;p=minix.git Kernel: reenable interrupts before halting --- diff --git a/kernel/arch/arm/arch_reset.c b/kernel/arch/arm/arch_reset.c index 66232ba09..22cc62706 100644 --- a/kernel/arch/arm/arch_reset.c +++ b/kernel/arch/arm/arch_reset.c @@ -19,10 +19,12 @@ #include "direct_utils.h" #include -void halt_cpu(void) +void +halt_cpu(void) { - asm volatile("dsb"); - asm volatile("wfi"); + asm volatile("dsb"); + asm volatile("cpsie i"); + asm volatile("wfi"); } void @@ -31,15 +33,17 @@ reset(void) while (1); } -__dead void arch_shutdown(int how) +__dead void +arch_shutdown(int how) { - while (1); + while (1); } #ifdef DEBUG_SERIAL -void ser_putc(char c) +void +ser_putc(char c) { - omap3_ser_putc(c); + omap3_ser_putc(c); } #endif