MdeModule PeiCore: Support pre memory page allocation
Support pre memory page allocation. Support FreePages. Allocation made prior to permanent memory will be migrated to permanent memory and the HOB updated. Cc: Liming Gao <liming.gao@intel.com> Cc: Ruiyu Ni <Ruiyu.Ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@ -64,7 +64,8 @@ EFI_PEI_SERVICES gPs = {
|
||||
PeiRegisterForShadow,
|
||||
PeiFfsFindSectionData3,
|
||||
PeiFfsGetFileInfo2,
|
||||
PeiResetSystem2
|
||||
PeiResetSystem2,
|
||||
PeiFreePages,
|
||||
};
|
||||
|
||||
/**
|
||||
@ -231,6 +232,11 @@ PeiCore (
|
||||
HandoffInformationTable->EfiFreeMemoryTop = OldCoreData->FreePhysicalMemoryTop;
|
||||
HandoffInformationTable->EfiFreeMemoryBottom = HandoffInformationTable->EfiEndOfHobList + sizeof (EFI_HOB_GENERIC_HEADER);
|
||||
|
||||
//
|
||||
// We need convert MemoryBaseAddress in memory allocation HOBs
|
||||
//
|
||||
ConvertMemoryAllocationHobs (OldCoreData);
|
||||
|
||||
//
|
||||
// We need convert the PPI descriptor's pointer
|
||||
//
|
||||
|
Reference in New Issue
Block a user