summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-11-28 22:22:05 +0000
committerjhb <jhb@FreeBSD.org>2007-11-28 22:22:05 +0000
commit4a39f29f1b08c6b6d6b082dee8129524b1fda5e5 (patch)
tree3d79f62f3b2c2c50d245c9c07dfef247d1b4d5e2 /sys
parent77643d0653c438772894d85543f60055f3b967d6 (diff)
downloadFreeBSD-src-4a39f29f1b08c6b6d6b082dee8129524b1fda5e5.zip
FreeBSD-src-4a39f29f1b08c6b6d6b082dee8129524b1fda5e5.tar.gz
MFamd64: 1.109 of pci_cfgreg.c which changes pci_cfgdisable() into a nop
for type #1 similar to what other OS's do. MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/pci/pci_cfgreg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c
index 9bdfe29..e8be305 100644
--- a/sys/i386/pci/pci_cfgreg.c
+++ b/sys/i386/pci/pci_cfgreg.c
@@ -280,11 +280,15 @@ pci_cfgdisable(void)
{
switch (cfgmech) {
case CFGMECH_1:
- outl(CONF1_ADDR_PORT, 0);
+ /*
+ * Do nothing for the config mechanism 1 case.
+ * Writing a 0 to the address port can apparently
+ * confuse some bridges and cause spurious
+ * access failures.
+ */
break;
case CFGMECH_2:
outb(CONF2_ENABLE_PORT, 0);
- outb(CONF2_FORWARD_PORT, 0);
break;
}
}
OpenPOWER on IntegriCloud