mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Clean up panicf and introduce system_exception_wait to do further target tasks and wait for a button when an unrecoverable error has occurred (panic, UIE, etc.). Returning from that function should reboot or don't return from it. Move UIE and __div0 for ARM to its own file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19716 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
32d9752dcc
commit
4ed78f5c72
18 changed files with 220 additions and 159 deletions
|
|
@ -887,6 +887,16 @@ void system_reboot(void)
|
|||
while (1);
|
||||
}
|
||||
|
||||
void system_exception_wait(void)
|
||||
{
|
||||
/* check for power button without including any .h file */
|
||||
while (1)
|
||||
{
|
||||
if( (~(*(volatile unsigned int *)(0xB0010300))) & (1 << 29) )
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void power_off(void)
|
||||
{
|
||||
/* Put system into hibernate mode */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue