]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/Platform.c
Revert "OvmfPkg/PlatformPei: hoist PciBase assignment above the i440fx/q35 branching"
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.c
index 9c013613a1a0b35517bd5b7da039a5ede5c304b8..5e0a15484230607876334c14e9e1c1db093b1d9e 100644 (file)
@@ -181,7 +181,6 @@ MemMapInitialization (
 \r
     TopOfLowRam = GetSystemMemorySizeBelow4gb ();\r
     PciExBarBase = 0;\r
-    PciBase = (TopOfLowRam < BASE_2GB) ? BASE_2GB : TopOfLowRam;\r
     if (mHostBridgeDevId == INTEL_Q35_MCH_DEVICE_ID) {\r
       //\r
       // The MMCONFIG area is expected to fall between the top of low RAM and\r
@@ -193,6 +192,7 @@ MemMapInitialization (
       PciBase = (UINT32)(PciExBarBase + SIZE_256MB);\r
       PciSize = 0xFC000000 - PciBase;\r
     } else {\r
+      PciBase = (TopOfLowRam < BASE_2GB) ? BASE_2GB : TopOfLowRam;\r
       PciSize = 0xFC000000 - PciBase;\r
     }\r
 \r