audk/OvmfPkg/PlatformPei
Gerd Hoffmann 124b765051 OvmfPkg/PlatformInitLib: Add PlatformGetLowMemoryCB
Add PlatformGetLowMemoryCB() callback function for use with
PlatformScanE820().  It stores the low memory size in
PlatformInfoHob->LowMemory.  This replaces calls to
PlatformScanOrAdd64BitE820Ram() with non-NULL LowMemory.

Write any actions done (setting LowMemory) to the firmware log
with INFO loglevel.

Also change PlatformGetSystemMemorySizeBelow4gb() to likewise set
PlatformInfoHob->LowMemory instead of returning the value.  Update
all Callers to the new convention.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2023-01-17 16:36:59 +00:00
..
AmdSev.c OvmfPkg/PlatformPei: Validate SEC's GHCB page 2022-12-15 08:05:52 +00:00
ClearCache.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FeatureControl.c OvmfPkg/PlatformPei: remove mFeatureControlValue 2022-12-14 17:45:41 +00:00
Fv.c OvmfPkg/PlatformPei: PeiFv: stop using mPlatformInfoHob 2022-12-14 17:45:41 +00:00
IntelTdx.c OvmfPkg: Update PlatformPei to support Tdx guest 2022-04-02 08:15:12 +00:00
MemDetect.c OvmfPkg/PlatformInitLib: Add PlatformGetLowMemoryCB 2023-01-17 16:36:59 +00:00
MemTypeInfo.c OvmfPkg/PlatformPei: MemTypeInfo: stop using mPlatformInfoHob 2022-12-14 17:45:41 +00:00
Platform.c OvmfPkg/PlatformPei: remove mFeatureControlValue 2022-12-14 17:45:41 +00:00
Platform.h OvmfPkg/PlatformPei: remove mFeatureControlValue 2022-12-14 17:45:41 +00:00
PlatformPei.inf OvmfPkg/UefiCpuPkg/UefiPayloadPkg: Rename VmgExitLib to CcExitLib 2022-11-14 04:55:34 +00:00