mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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
This commit is contained in:
parent
0773ece459
commit
be6dd6dd0a
1 changed files with 4 additions and 0 deletions
|
|
@ -87,6 +87,10 @@ static void UIRQ(void)
|
||||||
{
|
{
|
||||||
unsigned int irq_no = 0;
|
unsigned int irq_no = 0;
|
||||||
int status = VIC_IRQ_STATUS;
|
int status = VIC_IRQ_STATUS;
|
||||||
|
|
||||||
|
if(status == 0)
|
||||||
|
panicf("Unhandled IRQ (source unknown!)");
|
||||||
|
|
||||||
while((status >>= 1))
|
while((status >>= 1))
|
||||||
irq_no++;
|
irq_no++;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue