Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hp700/dev Only post EOI once for shared interrupts....
details: https://anonhg.NetBSD.org/src/rev/f576769e5bec
branches: trunk
changeset: 754236:f576769e5bec
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Apr 24 10:41:21 2010 +0000
description:
Only post EOI once for shared interrupts. From Mark Kettenis.
diffstat:
sys/arch/hp700/dev/apic.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r b4381e516106 -r f576769e5bec sys/arch/hp700/dev/apic.c
--- a/sys/arch/hp700/dev/apic.c Sat Apr 24 09:39:56 2010 +0000
+++ b/sys/arch/hp700/dev/apic.c Sat Apr 24 10:41:21 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apic.c,v 1.6 2010/01/05 13:20:29 mbalmer Exp $ */
+/* $NetBSD: apic.c,v 1.7 2010/04/24 10:41:21 skrll Exp $ */
/* $OpenBSD: apic.c,v 1.7 2007/10/06 23:50:54 krw Exp $ */
@@ -235,19 +235,19 @@
struct apic_iv *iv = v;
struct elroy_softc *sc = iv->sc;
volatile struct elroy_regs *r = sc->sc_regs;
+ uint32_t irq = APIC_INT_IRQ(iv->ih);
int claimed = 0;
while (iv) {
if (iv->handler(iv->arg)) {
if (iv->cnt)
iv->cnt->ev_count++;
- /* Signal EOI. */
- elroy_write32(&r->apic_eoi,
- htole32((31 - APIC_INT_IRQ(iv->ih)) & APIC_ENT0_VEC));
claimed = 1;
}
iv = iv->next;
}
+ /* Signal EOI. */
+ elroy_write32(&r->apic_eoi, htole32((31 - irq) & APIC_ENT0_VEC));
return (claimed);
}
Home |
Main Index |
Thread Index |
Old Index