forked from len0rd/rockbox
as3525: show unmasked interrupts on unhandled IRQ
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26250 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9c13b6e7c6
commit
8d1ec38a1d
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue