tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.38k stars 2.4k forks source link

MdeModulePkg/PciHostBridgeDxe: Ignore TypeIo for non X86/X64 architectures #5853

Open makubacki opened 6 days ago

makubacki commented 6 days ago

Description

Throughout PciHostBridgeDxe, functions iterate through all entries in the PCI_RESOURCE_TYPE enum. However TypeIo only applies for x86_64 platforms and on platforms such as Arm, the driver may exit early if resources are not available.

This changes the starting point of the PCI_RESOURCE_TYPE enum iteration from 0 to PCI_RESOURCE_TYPE_ENUM_START and conditionally sets that value to TypeIo or TypeMem32 based on whether the platform is x86_64 or not.

How This Was Tested

Integration Instructions

N/A