summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-19 15:56:10 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-19 15:56:10 +0000
commit25491980d6615098bab331fde65006f7c66eadf3 (patch)
tree5247aa09bf05a4c51c2610fe16ce1b7f355c183c /firmware
parente44b65c806fa4fa7a30a9c2a4dce7f82d859ac09 (diff)
downloadrockbox-25491980d6615098bab331fde65006f7c66eadf3.tar.gz
rockbox-25491980d6615098bab331fde65006f7c66eadf3.tar.bz2
rockbox-25491980d6615098bab331fde65006f7c66eadf3.zip
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c3
1 files changed, 3 insertions, 0 deletions
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 */