forked from len0rd/rockbox
as3525: don't destroy status when calculating IRQ number in UIRQ()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26260 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
88a8ed8497
commit
2d40d566d7
1 changed files with 1 additions and 3 deletions
|
@ -87,7 +87,6 @@ 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)
|
||||
|
@ -99,8 +98,7 @@ static void UIRQ(void)
|
|||
if(status == 0)
|
||||
panicf("Unhandled IRQ (source unknown!)");
|
||||
|
||||
while((status >>= 1))
|
||||
irq_no++;
|
||||
unsigned irq_no = find_first_set_bit(status);
|
||||
|
||||
panicf("Unhandled %smasked IRQ %02X: %s (status 0x%8X)",
|
||||
masked ? "" : "no", irq_no, irqname[irq_no], status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue