summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-29 15:19:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-08-29 15:19:58 +0000
commit24e3dada9f7f6d011d5649e9b66ddd99e339f888 (patch)
tree7bb3347e9569ff1e98906acdcffe9776d3c069b4 /sys/arch/i386
parent89ed813e7535a1938538861d3a9c5dfc70c44773 (diff)
In previous change, misconfigured APICs were not being repaired.
noticed by Andrew Daugherity ok kettenis
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/ioapic.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/ioapic.c b/sys/arch/i386/i386/ioapic.c
index f6de0573efc..3562599dcc0 100644
--- a/sys/arch/i386/i386/ioapic.c
+++ b/sys/arch/i386/i386/ioapic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioapic.c,v 1.39 2017/08/08 15:53:55 visa Exp $ */
+/* $OpenBSD: ioapic.c,v 1.40 2017/08/29 15:19:57 deraadt Exp $ */
/* $NetBSD: ioapic.c,v 1.7 2003/07/14 22:32:40 lukem Exp $ */
/*-
@@ -352,9 +352,10 @@ ioapic_attach(struct device *parent, struct device *self, void *aux)
* In case the APIC is not initialized to the correct ID
* do it now.
*/
- if (mp_verbose && apic_id != sc->sc_apicid) {
- printf("%s: misconfigured as apic %d",
- sc->sc_pic.pic_name, apic_id);
+ if (apic_id != sc->sc_apicid) {
+ if (mp_verbose)
+ printf("%s: misconfigured as apic %d",
+ sc->sc_pic.pic_name, apic_id);
ioapic_set_id(sc);
}
#if 0