From 25491980d6615098bab331fde65006f7c66eadf3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 19 Jul 2010 15:56:10 +0000 Subject: [PATCH] as3525*: disable_irq in system_reboot() make sure CGU_PERI write is atomic git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27493 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/system-as3525.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 8f6291201f..f822819f4c 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -305,6 +305,9 @@ void system_init(void) void system_reboot(void) { _backlight_off(); + + disable_irq(); + /* use watchdog to reset */ CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE); WDT_LOAD = 1; /* set counter to 1 */ -- 2.11.4.GIT