On 1/17/23 13:16, Gerd Hoffmann wrote: > 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 <kra...@redhat.com> > --- > OvmfPkg/Include/Library/PlatformInitLib.h | 3 +- > OvmfPkg/Library/PeilessStartupLib/Hob.c | 3 +- > .../PeilessStartupLib/PeilessStartup.c | 7 +- > OvmfPkg/Library/PlatformInitLib/MemDetect.c | 69 +++++++++++++------ > OvmfPkg/Library/PlatformInitLib/Platform.c | 7 +- > OvmfPkg/PlatformPei/MemDetect.c | 3 +- > 6 files changed, 59 insertions(+), 33 deletions(-)
Reviewed-by: Laszlo Ersek <ler...@redhat.com> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98699): https://edk2.groups.io/g/devel/message/98699 Mute This Topic: https://groups.io/mt/96328403/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-