diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2009-01-08 10:15:32 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2009-01-08 10:15:32 +0000 |
commit | 4ed78f5c72649002d78d48d9a117826a5d9c36f9 (patch) | |
tree | 7ebe8ac19acabd74117a638da8dbb0c1cedf2600 /uisimulator/common/stubs.c | |
parent | 32d9752dcc73fd1aaa81d484c3d426ca7856b146 (diff) | |
download | rockbox-4ed78f5c72649002d78d48d9a117826a5d9c36f9.tar.gz rockbox-4ed78f5c72649002d78d48d9a117826a5d9c36f9.zip |
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
Diffstat (limited to 'uisimulator/common/stubs.c')
-rw-r--r-- | uisimulator/common/stubs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index f50425b494..12b6f293a4 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c | |||
@@ -340,6 +340,16 @@ void touchpad_set_sensitivity(int level) | |||
340 | } | 340 | } |
341 | #endif | 341 | #endif |
342 | 342 | ||
343 | void system_exception_wait(void) | ||
344 | { | ||
345 | while(1); | ||
346 | } | ||
347 | |||
348 | void system_reboot(void) | ||
349 | { | ||
350 | while(1); | ||
351 | } | ||
352 | |||
343 | /* assure an unused place to direct virtual pointers to */ | 353 | /* assure an unused place to direct virtual pointers to */ |
344 | #define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */ | 354 | #define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */ |
345 | unsigned char vp_dummy[VIRT_SIZE]; | 355 | unsigned char vp_dummy[VIRT_SIZE]; |