]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PeilessStartupLib/Hob.c
OvmfPkg/PlatformInitLib: Add PlatformGetLowMemoryCB
[mirror_edk2.git] / OvmfPkg / Library / PeilessStartupLib / Hob.c
index 630ce445ebec024e022a091f8daae9ed636cf562..318b74c95d8e9938e5717491fbb5752dbc692760 100644 (file)
@@ -42,7 +42,8 @@ ConstructSecHobList (
 \r
   ZeroMem (&PlatformInfoHob, sizeof (PlatformInfoHob));\r
   PlatformInfoHob.HostBridgeDevId = PciRead16 (OVMF_HOSTBRIDGE_DID);\r
-  LowMemorySize                   = PlatformGetSystemMemorySizeBelow4gb (&PlatformInfoHob);\r
+  PlatformGetSystemMemorySizeBelow4gb (&PlatformInfoHob);\r
+  LowMemorySize = PlatformInfoHob.LowMemory;\r
   ASSERT (LowMemorySize != 0);\r
   LowMemoryStart = FixedPcdGet32 (PcdOvmfDxeMemFvBase) + FixedPcdGet32 (PcdOvmfDxeMemFvSize);\r
   LowMemorySize -= LowMemoryStart;\r