diff options
-rw-r--r-- | firmware/panic.c | 8 | ||||
-rw-r--r-- | firmware/target/arm/system-arm.c | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/firmware/panic.c b/firmware/panic.c index 0223dc1494..66b9e4d7eb 100644 --- a/firmware/panic.c +++ b/firmware/panic.c | |||
@@ -30,6 +30,9 @@ | |||
30 | #include "led.h" | 30 | #include "led.h" |
31 | #include "power.h" | 31 | #include "power.h" |
32 | #include "system.h" | 32 | #include "system.h" |
33 | #ifdef HAVE_BACKLIGHT | ||
34 | #include "backlight-target.h" | ||
35 | #endif | ||
33 | 36 | ||
34 | static char panic_buf[128]; | 37 | static char panic_buf[128]; |
35 | #define LINECHARS (LCD_WIDTH/SYSFONT_WIDTH) | 38 | #define LINECHARS (LCD_WIDTH/SYSFONT_WIDTH) |
@@ -75,9 +78,14 @@ void panicf( const char *fmt, ...) | |||
75 | #else | 78 | #else |
76 | /* no LCD */ | 79 | /* no LCD */ |
77 | #endif | 80 | #endif |
81 | |||
78 | lcd_update(); | 82 | lcd_update(); |
79 | DEBUGF("%s", panic_buf); | 83 | DEBUGF("%s", panic_buf); |
80 | 84 | ||
85 | #ifdef HAVE_BACKLIGHT | ||
86 | _backlight_on(); | ||
87 | #endif | ||
88 | |||
81 | set_cpu_frequency(0); | 89 | set_cpu_frequency(0); |
82 | 90 | ||
83 | #ifdef HAVE_ATA_POWER_OFF | 91 | #ifdef HAVE_ATA_POWER_OFF |
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 */ |