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:
parent
b2f1b5dd18
commit
b1feebeb2b
1 changed files with 1 additions and 1 deletions
|
@ -935,7 +935,7 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */
|
||||||
lcd_setfont(FONT_SYSFIXED);
|
lcd_setfont(FONT_SYSFIXED);
|
||||||
#endif
|
#endif
|
||||||
/* output exception */
|
/* 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]);
|
snprintf(str,sizeof(str),"I%02x:%s",n,irqname[n]);
|
||||||
lcd_puts(0,0,str);
|
lcd_puts(0,0,str);
|
||||||
snprintf(str,sizeof(str),"at %08x",pc);
|
snprintf(str,sizeof(str),"at %08x",pc);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue