diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-07-25 18:23:06 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-07-25 18:23:06 +0000 |
commit | ccb52bd72ca5caf9c78d7895dcb11bf489308c4d (patch) | |
tree | 3b89f989e7130dc849cc8e7647da1d1d2b31df77 /firmware/target | |
parent | fe1568a11c046c32b1ae7a3857b2a4c225492c56 (diff) | |
download | rockbox-ccb52bd72ca5caf9c78d7895dcb11bf489308c4d.tar.gz rockbox-ccb52bd72ca5caf9c78d7895dcb11bf489308c4d.zip |
Make the panic and UIE handlers turn on the backlight (needed for various colour LCDs that are unreadable without it). UIE is only changed on ARM for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/system-arm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/system-arm.c b/firmware/target/arm/system-arm.c index 5c5a18c867..7d38b17979 100644 --- a/firmware/target/arm/system-arm.c +++ b/firmware/target/arm/system-arm.c | |||
@@ -23,6 +23,9 @@ | |||
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include "lcd.h" | 24 | #include "lcd.h" |
25 | #include "font.h" | 25 | #include "font.h" |
26 | #ifdef HAVE_BACKLIGHT | ||
27 | #include "backlight-target.h" | ||
28 | #endif | ||
26 | 29 | ||
27 | static const char* const uiename[] = { | 30 | static const char* const uiename[] = { |
28 | "Undefined instruction", | 31 | "Undefined instruction", |
@@ -48,6 +51,10 @@ void __attribute__((noreturn)) UIE(unsigned int pc, unsigned int num) | |||
48 | lcd_puts(0, 1, str); | 51 | lcd_puts(0, 1, str); |
49 | lcd_update(); | 52 | lcd_update(); |
50 | 53 | ||
54 | #ifdef HAVE_BACKLIGHT | ||
55 | _backlight_on(); | ||
56 | #endif | ||
57 | |||
51 | disable_interrupt(IRQ_FIQ_STATUS); | 58 | disable_interrupt(IRQ_FIQ_STATUS); |
52 | 59 | ||
53 | system_exception_wait(); /* If this returns, try to reboot */ | 60 | system_exception_wait(); /* If this returns, try to reboot */ |