audk/DuetPkg/PciBusNoEnumerationDxe
Lee Leahy ba33c80fc5 DuetPkg-PciBusNoEnumerationDxe: Fix stack overflow
When a PCI bridge is not enabled, the secondary bus may still be zero.
This causes an infinite recursive call to enumerate bus 0 which results
in a stack overflow.  The easy fix is to skip the recursive bus
enumeration for bridges which do not have the secondary bus initialized.

TEST=Build and run CorebootPayloadPkg on Quark/Galileo Gen2

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2016-02-26 10:39:15 +08:00
..
ComponentName.c
PciBus.c
PciBus.h
PciBusNoEnumeration.inf
PciCommand.c
PciCommand.h
PciDeviceSupport.c
PciDeviceSupport.h
PciDriverOverride.c
PciDriverOverride.h
PciEnumerator.c
PciEnumerator.h
PciEnumeratorSupport.c
PciEnumeratorSupport.h
PciIo.c
PciIo.h
PciOptionRomSupport.c
PciOptionRomSupport.h
PciPowerManagement.c
PciPowerManagement.h
PciRomTable.c
PciRomTable.h