summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-08-11 13:20:55 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-08-11 13:20:55 +0000
commitbe6dd6dd0a773bfaa03ffe20d1e5998eee0b7afe (patch)
tree6fee8fc6ae0321548a35ba16f8befa4b61db3a7c /firmware
parent0773ece459578ce2e0b167e070195a7f6df0c4a7 (diff)
downloadrockbox-be6dd6dd0a773bfaa03ffe20d1e5998eee0b7afe.tar.gz
rockbox-be6dd6dd0a773bfaa03ffe20d1e5998eee0b7afe.tar.bz2
rockbox-be6dd6dd0a773bfaa03ffe20d1e5998eee0b7afe.zip
Sansa AMS: identify interrupts with no source set
They would previously appear like coming from the (disabled) watchdog module git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22251 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index e973354b8b..d68f2c4f00 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -87,6 +87,10 @@ static void UIRQ(void)
{
unsigned int irq_no = 0;
int status = VIC_IRQ_STATUS;
+
+ if(status == 0)
+ panicf("Unhandled IRQ (source unknown!)");
+
while((status >>= 1))
irq_no++;