summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}