summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-24 14:32:38 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-24 14:32:38 +0000
commit8d1ec38a1d8721330798dbfc55be456ecd964bdf (patch)
treebd2e60a6421cf8f3ed24d093374a617ebf0b14ed /firmware
parent9c13b6e7c68776f930867c038fb3ad006a4ea8ab (diff)
downloadrockbox-8d1ec38a1d8721330798dbfc55be456ecd964bdf.tar.gz
rockbox-8d1ec38a1d8721330798dbfc55be456ecd964bdf.tar.bz2
rockbox-8d1ec38a1d8721330798dbfc55be456ecd964bdf.zip
as3525: show unmasked interrupts on unhandled IRQ
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26250 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 44e210a3cc..80804d41da 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -88,7 +88,13 @@ static const char * const irqname[] =
static void UIRQ(void)
{
unsigned int irq_no = 0;
+ bool masked = false;
int status = VIC_IRQ_STATUS;
+ if(status == 0)
+ {
+ status = VIC_RAW_INTR; /* masked interrupts */
+ masked = true;
+ }
if(status == 0)
panicf("Unhandled IRQ (source unknown!)");
@@ -96,7 +102,8 @@ static void UIRQ(void)
while((status >>= 1))
irq_no++;
- panicf("Unhandled IRQ %02X: %s", irq_no, irqname[irq_no]);
+ panicf("Unhandled %smasked IRQ %02X: %s (status 0x%8X)",
+ masked ? "" : "no", irq_no, irqname[irq_no], status);
}
struct vec_int_src