summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-26 14:00:25 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-26 14:00:25 +0000
commit682a991f0f5df93a4b32042d64d9a9ccb1d0dcdf (patch)
tree8b70298f57ae93478549f869385e9771c8d82bfe /firmware
parent4ce26ff328c632260441c30ffad66856bd9a2e0d (diff)
downloadrockbox-682a991f0f5df93a4b32042d64d9a9ccb1d0dcdf.tar.gz
rockbox-682a991f0f5df93a4b32042d64d9a9ccb1d0dcdf.tar.bz2
rockbox-682a991f0f5df93a4b32042d64d9a9ccb1d0dcdf.zip
Ingenic Jz4740 targets: turn backlight on when an exception occurs and EXTENDED_EXCEPTION_DESC is defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22052 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-jz4740.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
index 978675825c..c5f99aba23 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
@@ -29,6 +29,7 @@
#define EXTENDED_EXCEPTION_DESC 0
#if EXTENDED_EXCEPTION_DESC
+#include "backlight-target.h"
#include "font.h"
#include "lcd.h"
#include "sprintf.h"
@@ -264,6 +265,7 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc)
lcd_set_backdrop(NULL);
lcd_clear_display();
lcd_setfont(FONT_SYSFIXED);
+ _backlight_on();
snprintf(buffer, sizeof(buffer), "0x%08x at 0x%08x", read_c0_badvaddr(), epc);
lcd_puts(0, 0, parse_exception(cause));