]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.c
Fix the issue in MdeModulePkg that mismatch between PCD type and the PCD Lib API...
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciBusDxe / PciLib.c
index f40000672fc63f4a9200676c6951053ab5cac03a..d01a1f8f4b89fb93fe06df5622beebf9d0be9a69 100644 (file)
@@ -236,10 +236,14 @@ PciHostBridgeResourceAllocator (
       // enumerator. Several resource tree was created\r
       //\r
 \r
+      //\r
+      // If non-stardard PCI Bridge I/O window alignment is supported,\r
+      // set I/O aligment to minimum possible alignment for root bridge.\r
+      //\r
       IoBridge = CreateResourceNode (\r
                    RootBridgeDev,\r
                    0,\r
-                   0xFFF,\r
+                   FeaturePcdGet (PcdPciBridgeIoAlignmentProbe) ? 0x1FF: 0xFFF,\r
                    0,\r
                    PciBarTypeIo16,\r
                    PciResUsageTypical\r