summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-08-18 08:30:36 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-08-18 08:30:36 +0000
commit8524fe5ab3680d0c5e67654b5c0ba7666b428c86 (patch)
tree4c141b281c0ab9d88dccdd945cd3473ef362e30b /sys/arch
parent8f115e7f0c29b471c155f91fd7ce156695ad734e (diff)
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@
Diffstat (limited to 'sys/arch')
-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
}