diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2023-01-17 13:16:25 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-01-17 16:36:59 +0000 |
commit | e0375304682683f6e5c466fba948619bc6e6f377 (patch) | |
tree | fd361b520084b9267bcdbc688c86c5cc4469ef2f /OvmfPkg/PlatformPei | |
parent | a107ad0f623669c72997443dc0431eeb732f81a0 (diff) | |
download | edk2-e0375304682683f6e5c466fba948619bc6e6f377.tar.gz edk2-e0375304682683f6e5c466fba948619bc6e6f377.tar.bz2 edk2-e0375304682683f6e5c466fba948619bc6e6f377.zip |
OvmfPkg/PlatformInitLib: Add PlatformScanE820 and GetFirstNonAddressCB
First step replacing the PlatformScanOrAdd64BitE820Ram() function.
Add a PlatformScanE820() function which loops over the e280 entries
from FwCfg and calls a callback for each of them.
Add a GetFirstNonAddressCB() function which will store the first free
address (right after the last RAM block) in
PlatformInfoHob->FirstNonAddress. This replaces calls to
PlatformScanOrAdd64BitE820Ram() with non-NULL MaxAddress.
Write any actions done (setting FirstNonAddress) to the firmware log
with INFO loglevel.
Also drop local FirstNonAddress variables and use
PlatformInfoHob->FirstNonAddress instead everywhere.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/PlatformPei')
0 files changed, 0 insertions, 0 deletions