Signed-off-by: Vicente <vicencb@xxxxxxxxx> --- arch/arm/cpu/cpu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c index 87ba877..7991c7a 100644 --- a/arch/arm/cpu/cpu.c +++ b/arch/arm/cpu/cpu.c @@ -28,6 +28,7 @@ #include <asm/mmu.h> #include <asm/system.h> #include <asm/memory.h> +#include <asm/irqflags.h> /** * Enable processor's instruction cache @@ -85,6 +86,12 @@ void arch_shutdown(void) : "r0", "r1", "r2", "r3", "r6", "r10", "r12", "lr", "cc", "memory" ); #endif + /* + * barebox normally does not use interrupts, but some functionalities + * (eg. OMAP4_USBBOOT) require them enabled. So be sure interrupts are + * disabled before exiting. + */ + arch_local_irq_disable(); } #ifdef CONFIG_THUMB2_BAREBOX -- 1.7.12.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox