summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-02 07:36:39 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-02 07:36:39 +0000
commitb1feebeb2b30ccbcc02af6e965b9408b9af7f8f8 (patch)
tree73885d58acb1ad18d9ef01a1d9291945df244178 /firmware
parentb2f1b5dd183b1171c81796946c868f2df8df9647 (diff)
Oops, correctly calculate the interrupt number in UIE().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9859 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 81d5ee9202..6e6408bf1b 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -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);