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++;