]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PeilessStartupLib/PeilessStartup.c
OvmfPkg/PlatformInitLib: Add PlatformGetLowMemoryCB
[mirror_edk2.git] / OvmfPkg / Library / PeilessStartupLib / PeilessStartup.c
index 380e71597206fe0a5281cd75c8df5323083e8e20..928120d183ba56d1175bf34625234041df4ea47e 100644 (file)
@@ -41,8 +41,7 @@ InitializePlatform (
   EFI_HOB_PLATFORM_INFO  *PlatformInfoHob\r
   )\r
 {\r
-  UINT32  LowerMemorySize;\r
-  VOID    *VariableStore;\r
+  VOID  *VariableStore;\r
 \r
   DEBUG ((DEBUG_INFO, "InitializePlatform in Pei-less boot\n"));\r
   PlatformDebugDumpCmos ();\r
@@ -70,14 +69,14 @@ InitializePlatform (
     PlatformInfoHob->PcdCpuBootLogicalProcessorNumber\r
     ));\r
 \r
-  LowerMemorySize = PlatformGetSystemMemorySizeBelow4gb (PlatformInfoHob);\r
+  PlatformGetSystemMemorySizeBelow4gb (PlatformInfoHob);\r
   PlatformQemuUc32BaseInitialization (PlatformInfoHob);\r
   DEBUG ((\r
     DEBUG_INFO,\r
     "Uc32Base = 0x%x, Uc32Size = 0x%x, LowerMemorySize = 0x%x\n",\r
     PlatformInfoHob->Uc32Base,\r
     PlatformInfoHob->Uc32Size,\r
-    LowerMemorySize\r
+    PlatformInfoHob->LowMemory\r
     ));\r
 \r
   VariableStore                                  = PlatformReserveEmuVariableNvStore ();\r