The BaseAddress and Length should be align PAGE according to PI specification for EFI_MEMORY_ALLOCATION_HOB
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4162 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -224,7 +224,7 @@ DxeLoadCore (
|
||||
BuildModuleHob (
|
||||
&DxeCoreFileName,
|
||||
DxeCoreAddress,
|
||||
DxeCoreSize,
|
||||
EFI_SIZE_TO_PAGES ((UINT32) DxeCoreSize) * EFI_PAGE_SIZE,
|
||||
DxeCoreEntryPoint
|
||||
);
|
||||
|
||||
|
@@ -248,7 +248,7 @@ Returns:
|
||||
//
|
||||
BuildMemoryAllocationHob (
|
||||
Hob.HandoffInformationTable->EfiFreeMemoryTop,
|
||||
Pages * EFI_PAGE_SIZE + Offset,
|
||||
Pages * EFI_PAGE_SIZE,
|
||||
MemoryType
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user