summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-01-24 20:47:46 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-01-24 20:47:46 +0000
commit5aa2b87dbe4dec4d80ffd2bcec964348ca473f6e (patch)
treea55592f97546e5351ac2161460e7ea40694290d2 /sys/arch
parent52e9ed267fe1eaeba6fd5a0d048f8e49da4aa865 (diff)
Actually establish interrupt handler in !ioapic_cold case.
ok marco@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/ioapic.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/arch/amd64/amd64/ioapic.c b/sys/arch/amd64/amd64/ioapic.c
index 1588e3aac9c..23cfe610c20 100644
--- a/sys/arch/amd64/amd64/ioapic.c
+++ b/sys/arch/amd64/amd64/ioapic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioapic.c,v 1.9 2007/01/15 23:19:05 jsg Exp $ */
+/* $OpenBSD: ioapic.c,v 1.10 2007/01/24 20:47:45 kettenis Exp $ */
/* $NetBSD: ioapic.c,v 1.6 2003/05/15 13:30:31 fvdl Exp $ */
/*-
@@ -511,13 +511,12 @@ ioapic_addroute(struct pic *pic, struct cpu_info *ci, int pin,
struct ioapic_softc *sc = (struct ioapic_softc *)pic;
struct ioapic_pin *pp;
- if (ioapic_cold) {
- pp = &sc->sc_pins[pin];
- pp->ip_type = type;
- pp->ip_vector = idtvec;
- pp->ip_cpu = ci;
+ pp = &sc->sc_pins[pin];
+ pp->ip_type = type;
+ pp->ip_vector = idtvec;
+ pp->ip_cpu = ci;
+ if (ioapic_cold)
return;
- }
apic_set_redir(sc, pin, idtvec, ci);
}