From be6dd6dd0a773bfaa03ffe20d1e5998eee0b7afe Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Tue, 11 Aug 2009 13:20:55 +0000 Subject: 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 --- firmware/target/arm/as3525/system-as3525.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/target/arm/as3525') 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++; -- cgit v1.2.3