Page MenuHomeFreeBSD

D35798.diff
No OneTemporary

D35798.diff

diff --git a/sys/conf/options.amd64 b/sys/conf/options.amd64
--- a/sys/conf/options.amd64
+++ b/sys/conf/options.amd64
@@ -60,3 +60,6 @@
# EFI Runtime services support
EFIRT opt_efirt.h
+
+# Don't create a "legacy" PCI bridge if none is found.
+NO_LEGACY_PCIB opt_cpu.h
diff --git a/sys/conf/options.i386 b/sys/conf/options.i386
--- a/sys/conf/options.i386
+++ b/sys/conf/options.i386
@@ -104,3 +104,6 @@
# options for the Intel C600 SAS driver (isci)
ISCI_LOGGING opt_isci.h
+
+# Don't create a "legacy" PCI bridge if none is found.
+NO_LEGACY_PCIB opt_cpu.h
diff --git a/sys/x86/pci/pci_bus.c b/sys/x86/pci/pci_bus.c
--- a/sys/x86/pci/pci_bus.c
+++ b/sys/x86/pci/pci_bus.c
@@ -488,11 +488,13 @@
* Note that pci_cfgregopen() thinks we have PCI devices..
*/
if (!found) {
+#ifndef NO_LEGACY_PCIB
if (bootverbose)
printf(
"legacy_pcib_identify: no bridge found, adding pcib0 anyway\n");
child = BUS_ADD_CHILD(parent, 100, "pcib", 0);
legacy_set_pcibus(child, 0);
+#endif
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 12:36 PM (6 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15622935
Default Alt Text
D35798.diff (1015 B)

Event Timeline