diff options
author | dfr <dfr@FreeBSD.org> | 2000-02-13 09:49:05 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2000-02-13 09:49:05 +0000 |
commit | 793e1b469de28e62091b91715532f4bc97ed5fa5 (patch) | |
tree | df8dbed63dfb1e85a1ac41a287b40f0a474ed4c4 /sys/i386 | |
parent | f627aadcb2f32000790617ef809b378b68068001 (diff) | |
download | FreeBSD-src-793e1b469de28e62091b91715532f4bc97ed5fa5.zip FreeBSD-src-793e1b469de28e62091b91715532f4bc97ed5fa5.tar.gz |
Fix an uninitialised variable which affected probing on some machines.
Approved by: jkh
Reviewed by: gallatin
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/pcibus.c | 1 | ||||
-rw-r--r-- | sys/i386/pci/pci_bus.c | 1 | ||||
-rw-r--r-- | sys/i386/pci/pci_cfgreg.c | 1 | ||||
-rw-r--r-- | sys/i386/pci/pci_pir.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/isa/pcibus.c b/sys/i386/isa/pcibus.c index eaad794..fd34ad8 100644 --- a/sys/i386/isa/pcibus.c +++ b/sys/i386/isa/pcibus.c @@ -443,6 +443,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) probe.hose = 0; probe.bus = 0; for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) { + probe.func = 0; hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1); if (hdrtype & PCIM_MFDEV) pcifunchigh = 7; diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index eaad794..fd34ad8 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/pci/pci_bus.c @@ -443,6 +443,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) probe.hose = 0; probe.bus = 0; for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) { + probe.func = 0; hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1); if (hdrtype & PCIM_MFDEV) pcifunchigh = 7; diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index eaad794..fd34ad8 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -443,6 +443,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) probe.hose = 0; probe.bus = 0; for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) { + probe.func = 0; hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1); if (hdrtype & PCIM_MFDEV) pcifunchigh = 7; diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index eaad794..fd34ad8 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -443,6 +443,7 @@ nexus_pcib_identify(driver_t *driver, device_t parent) probe.hose = 0; probe.bus = 0; for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) { + probe.func = 0; hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1); if (hdrtype & PCIM_MFDEV) pcifunchigh = 7; |