From b38c2d996d339a68f33a8b681cce359a86f65bcf Mon Sep 17 00:00:00 2001 From: Felix Arends Date: Mon, 24 Jun 2002 11:35:13 +0000 Subject: Exception handler clears and updates the screen now (so one can read the error message) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1146 a1c6a512-1295-4272-9138-f99709370657 --- firmware/system.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware') diff --git a/firmware/system.c b/firmware/system.c index f02bbb821d..c9d1c6e153 100644 --- a/firmware/system.c +++ b/firmware/system.c @@ -323,12 +323,19 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */ asm volatile ("sts\tpr,%0" : "=r"(n)); + /* clear screen */ + lcd_clear_display (); + /* output exception */ n = (n - (unsigned)UIE0 - 4)>>2; // get exception or interrupt number snprintf(str,sizeof(str),"I%02x:%s",n,irqname[n]); lcd_puts(0,0,str); snprintf(str,sizeof(str),"at %08x",pc); lcd_puts(0,1,str); +#ifdef HAVE_LCD_BITMAP + lcd_update (); +#endif + while (1) { volatile int i; -- cgit v1.2.3