summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2006-08-18 08:30:35 +0000
committerkettenis <kettenis@openbsd.org>2006-08-18 08:30:35 +0000
commit4a69dd3e07865e1c44623e7badbb61a73f00ff8a (patch)
tree8e26ed2380224349b17cfacf8b232d1d80b5bdea
parentmake non-root -M use not cut ifconfig output; ok jsg (diff)
downloadwireguard-openbsd-4a69dd3e07865e1c44623e7badbb61a73f00ff8a.tar.xz
wireguard-openbsd-4a69dd3e07865e1c44623e7badbb61a73f00ff8a.zip
Make sure the PCI mode detection code is called if it hasn't been run yet.
This can happen on machines with mpbios but without pcibios like the Sun x4100 and x4200. ok dlg@
-rw-r--r--sys/arch/i386/i386/mpbios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/mpbios.c b/sys/arch/i386/i386/mpbios.c
index a4db41103ab..0f728918118 100644
--- a/sys/arch/i386/i386/mpbios.c
+++ b/sys/arch/i386/i386/mpbios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpbios.c,v 1.14 2006/05/29 20:40:58 miod Exp $ */
+/* $OpenBSD: mpbios.c,v 1.15 2006/08/18 08:30:35 kettenis Exp $ */
/* $NetBSD: mpbios.c,v 1.2 2002/10/01 12:56:57 fvdl Exp $ */
/*-
@@ -684,7 +684,7 @@ mpbios_scan(self)
}
#if NPCI > 0
- if (pci_mode != 0)
+ if (pci_mode_detect() != 0)
mpbios_intr_fixup();
#endif
}