diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-18 06:09:03 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-18 06:09:03 +0000 |
commit | 0a7d0741b624ef927dce432c4ccd72a7b855732f (patch) | |
tree | 149ab567d24ea8c0c5766ed1736c1fc2dfc6135b /MdeModulePkg | |
parent | 454e9f6593cd2d35c84e9cd445e68a2f68d6e201 (diff) | |
download | edk2-platforms-0a7d0741b624ef927dce432c4ccd72a7b855732f.tar.xz |
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Core/Pei/Memory/MemoryServices.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c index 82382111e6..84b8eb2abd 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c +++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c @@ -224,7 +224,7 @@ DxeLoadCore ( BuildModuleHob (
&DxeCoreFileName,
DxeCoreAddress,
- DxeCoreSize,
+ EFI_SIZE_TO_PAGES ((UINT32) DxeCoreSize) * EFI_PAGE_SIZE,
DxeCoreEntryPoint
);
diff --git a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c index 0976e2cbdd..728b963afa 100644 --- a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c +++ b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c @@ -248,7 +248,7 @@ Returns: //
BuildMemoryAllocationHob (
Hob.HandoffInformationTable->EfiFreeMemoryTop,
- Pages * EFI_PAGE_SIZE + Offset,
+ Pages * EFI_PAGE_SIZE,
MemoryType
);
|