summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-03-13 15:57:19 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-03-13 15:57:19 +0000
commit61a95b9f21a862d7ea5e5066fa900ee8a32eb210 (patch)
tree8152948647f7e8ee00cee3256f55b72032b5b7d4 /sys/arch/amd64
parentdf508cb48e320a45b38f5c2b7491c180c5993660 (diff)
Fix machines that need PCI access during ACPI bringup.
Help and ok kettenis.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/mainbus.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/amd64/amd64/mainbus.c b/sys/arch/amd64/amd64/mainbus.c
index 338f932eb6f..d8ddd224ec2 100644
--- a/sys/arch/amd64/amd64/mainbus.c
+++ b/sys/arch/amd64/amd64/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.4 2005/12/29 00:50:43 kettenis Exp $ */
+/* $OpenBSD: mainbus.c,v 1.5 2006/03/13 15:57:18 marco Exp $ */
/* $NetBSD: mainbus.c,v 1.1 2003/04/26 18:39:29 fvdl Exp $ */
/*
@@ -148,7 +148,14 @@ mainbus_attach(parent, self, aux)
printf("\n");
+#if NPCI > 0
+ pci_mode = pci_mode_detect();
+#endif
+
#if NACPI > 0
+#if NPCI > 0
+ if (pci_mode != 0)
+#endif
{
memset(&mba.mba_aaa, 0, sizeof(mba.mba_aaa));
mba.mba_aaa.aaa_name = "acpi";
@@ -174,10 +181,6 @@ mainbus_attach(parent, self, aux)
mpbios_present = mpbios_probe(self);
#endif
-#if NPCI > 0
- pci_mode = pci_mode_detect();
-#endif
-
#ifdef MPBIOS
if (mpbios_present)
mpbios_scan(self);