mirror of https://github.com/acidanthera/audk.git
EdkCompatibilityPkg: Fix 32bit build failure.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17066 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
afe5262ecc
commit
0ac71f158b
|
@ -900,9 +900,9 @@ InitializeScriptSaveOnS3SaveState (
|
|||
|
||||
MemoryAddress = SIZE_4GB - 1;
|
||||
if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) {
|
||||
PageNumber = EFI_SIZE_TO_PAGES (ImageContext.ImageSize + ImageContext.SectionAlignment);
|
||||
PageNumber = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment));
|
||||
} else {
|
||||
PageNumber = EFI_SIZE_TO_PAGES (ImageContext.ImageSize);
|
||||
PageNumber = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize);
|
||||
}
|
||||
Status = gBS->AllocatePages (
|
||||
AllocateMaxAddress,
|
||||
|
|
Loading…
Reference in New Issue