Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OvmfPkg/PlatformInitLib: Add memory functions
Below functions are introduced in PlatformInitLib: - PlatformGetFirstNonAddress - PlatformAddressWidthInitialization - PlatformGetSystemMemorySizeBelow4gb - PlatformQemuUc32BaseInitialization - PlatformInitializeRamRegions They correspond to the below functions in OvmfPkg/PlatformPei: - GetFirstNonAddress - AddressWidthInitialization - GetSystemMemorySizeBelow4gb - QemuUc32BaseInitialization - InitializeRamRegions Note: PlatformInitLib will not determine whether SMM or S3 is supported or not. Instead the caller of these functions should input SMM / S3 support as the IN parameter by themselves. This is to reduce the complexity of PlatformInitLib. Another reason is that some PCDs cannot be declared as FixedAtBuild while PlatformInitLib is designed to be used in both SEC and PEI phase. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Erdem Aktas <erdemaktas@google.com> Cc: James Bottomley <jejb@linux.ibm.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Min Xu <min.m.xu@intel.com>
- Loading branch information