Signal EOI correctly rather than deferencing NULL.
This commit is contained in:
parent
7e526c7d4b
commit
f194e4ddc0
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: apic.c,v 1.3 2009/05/07 15:34:49 skrll Exp $ */
|
/* $NetBSD: apic.c,v 1.4 2009/11/29 10:30:07 skrll Exp $ */
|
||||||
|
|
||||||
/* $OpenBSD: apic.c,v 1.7 2007/10/06 23:50:54 krw Exp $ */
|
/* $OpenBSD: apic.c,v 1.7 2007/10/06 23:50:54 krw Exp $ */
|
||||||
|
|
||||||
|
@ -241,16 +241,14 @@ apic_intr(void *v)
|
||||||
if (iv->handler(iv->arg)) {
|
if (iv->handler(iv->arg)) {
|
||||||
if (iv->cnt)
|
if (iv->cnt)
|
||||||
iv->cnt->ev_count++;
|
iv->cnt->ev_count++;
|
||||||
else
|
/* Signal EOI. */
|
||||||
claimed = 1;
|
elroy_write32(&r->apic_eoi,
|
||||||
|
htole32((31 - APIC_INT_IRQ(iv->ih)) & APIC_ENT0_VEC));
|
||||||
|
claimed = 1;
|
||||||
}
|
}
|
||||||
iv = iv->next;
|
iv = iv->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Signal EOI. */
|
|
||||||
elroy_write32(&r->apic_eoi,
|
|
||||||
htole32((31 - APIC_INT_IRQ(iv->ih)) & APIC_ENT0_VEC));
|
|
||||||
|
|
||||||
return (claimed);
|
return (claimed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue