diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-19 15:56:10 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-19 15:56:10 +0000 |
commit | 25491980d6615098bab331fde65006f7c66eadf3 (patch) | |
tree | 5247aa09bf05a4c51c2610fe16ce1b7f355c183c | |
parent | e44b65c806fa4fa7a30a9c2a4dce7f82d859ac09 (diff) | |
download | rockbox-25491980d6615098bab331fde65006f7c66eadf3.tar.gz 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
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 3 |
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) | |||
305 | void system_reboot(void) | 305 | void system_reboot(void) |
306 | { | 306 | { |
307 | _backlight_off(); | 307 | _backlight_off(); |
308 | |||
309 | disable_irq(); | ||
310 | |||
308 | /* use watchdog to reset */ | 311 | /* use watchdog to reset */ |
309 | CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE); | 312 | CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE); |
310 | WDT_LOAD = 1; /* set counter to 1 */ | 313 | WDT_LOAD = 1; /* set counter to 1 */ |