mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
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
This commit is contained in:
parent
e44b65c806
commit
25491980d6
1 changed files with 3 additions and 0 deletions
|
|
@ -305,6 +305,9 @@ void system_init(void)
|
||||||
void system_reboot(void)
|
void system_reboot(void)
|
||||||
{
|
{
|
||||||
_backlight_off();
|
_backlight_off();
|
||||||
|
|
||||||
|
disable_irq();
|
||||||
|
|
||||||
/* use watchdog to reset */
|
/* use watchdog to reset */
|
||||||
CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
|
CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
|
||||||
WDT_LOAD = 1; /* set counter to 1 */
|
WDT_LOAD = 1; /* set counter to 1 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue