diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/system-jz4740.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c index ce02a2539d..c90decc3b6 100644 --- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c | |||
@@ -255,7 +255,6 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) | |||
255 | (void)epc; | 255 | (void)epc; |
256 | 256 | ||
257 | /* Depends on crt0.S ! */ | 257 | /* Depends on crt0.S ! */ |
258 | char buffer[LCD_WIDTH/SYSFONT_WIDTH]; | ||
259 | char *registers[] = { "ra", "fp", "gp", "t9", "t8", "s7", "s6", "s5", "s4", | 258 | char *registers[] = { "ra", "fp", "gp", "t9", "t8", "s7", "s6", "s5", "s4", |
260 | "s3", "s2", "s1", "s0", "t7", "t6", "t5", "t4", "t3", | 259 | "s3", "s2", "s1", "s0", "t7", "t6", "t5", "t4", "t3", |
261 | "t2", "t1", "t0", "a3", "a2", "a1", "a0", "v1", "v0", | 260 | "t2", "t1", "t0", "a3", "a2", "a1", "a0", "v1", "v0", |
@@ -275,14 +274,12 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) | |||
275 | lcd_clear_display(); | 274 | lcd_clear_display(); |
276 | _backlight_on(); | 275 | _backlight_on(); |
277 | 276 | ||
278 | snprintf(buffer, sizeof(buffer), "0x%08x at 0x%08x", read_c0_badvaddr(), epc); | ||
279 | lcd_puts(0, 0, parse_exception(cause)); | 277 | lcd_puts(0, 0, parse_exception(cause)); |
280 | lcd_puts(0, 1, buffer); | 278 | lcd_putsf(0, 1, "0x%08x at 0x%08x", read_c0_badvaddr(), epc); |
281 | for(i=0; i< 0x80/4; i+=2) | 279 | for(i=0; i< 0x80/4; i+=2) |
282 | { | 280 | { |
283 | unsigned int* ptr = (unsigned int*)(stack_ptr + i*4); | 281 | unsigned int* ptr = (unsigned int*)(stack_ptr + i*4); |
284 | snprintf(buffer, sizeof(buffer), "%s: 0x%08x %s: 0x%08x", registers[i], *ptr, registers[i+1], *(ptr+1)); | 282 | lcd_putsf(0, 3 + i/2, "%s: 0x%08x %s: 0x%08x", registers[i], *ptr, registers[i+1], *(ptr+1)); |
285 | lcd_puts(0, 3 + i/2, buffer); | ||
286 | } | 283 | } |
287 | lcd_update(); | 284 | lcd_update(); |
288 | 285 | ||