1
0
Fork 0
forked from len0rd/rockbox

Oops, correctly calculate the interrupt number in UIE().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9859 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-05-02 07:36:39 +00:00
parent b2f1b5dd18
commit b1feebeb2b

View file

@ -935,7 +935,7 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */
lcd_setfont(FONT_SYSFIXED);
#endif
/* output exception */
n = (n - (unsigned)UIE4 - 20)>>2; /* get exception or interrupt number */
n = (n - (unsigned)UIE4 + 12)>>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);