diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-05-02 07:36:39 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-05-02 07:36:39 +0000 |
commit | b1feebeb2b30ccbcc02af6e965b9408b9af7f8f8 (patch) | |
tree | 73885d58acb1ad18d9ef01a1d9291945df244178 /firmware | |
parent | b2f1b5dd183b1171c81796946c868f2df8df9647 (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.c | 2 |
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); |