diff options
author | Star Zeng <star.zeng@intel.com> | 2015-03-19 02:08:27 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-03-19 02:08:27 +0000 |
commit | afe5262ecc93502babe802f7a8b281cbb91e2d0c (patch) | |
tree | 2839dac06b21c43100234f7bc135afb69cf06ce6 /MdeModulePkg | |
parent | c4b90c071d55dc75d2f6d47de1e11f3018fc2907 (diff) | |
download | edk2-afe5262ecc93502babe802f7a8b281cbb91e2d0c.tar.gz edk2-afe5262ecc93502babe802f7a8b281cbb91e2d0c.tar.bz2 edk2-afe5262ecc93502babe802f7a8b281cbb91e2d0c.zip |
MdeModulePkg BootScriptExecutorDxe: 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@17065 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c index 97df37b7ab..f8b2782244 100644 --- a/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c +++ b/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c @@ -308,9 +308,9 @@ ReadyToLockEventNotify ( Status = PeCoffLoaderGetImageInfo (&ImageContext);
ASSERT_EFI_ERROR (Status);
if (ImageContext.SectionAlignment > EFI_PAGE_SIZE) {
- Pages = EFI_SIZE_TO_PAGES (ImageContext.ImageSize + ImageContext.SectionAlignment);
+ Pages = EFI_SIZE_TO_PAGES ((UINTN) (ImageContext.ImageSize + ImageContext.SectionAlignment));
} else {
- Pages = EFI_SIZE_TO_PAGES (ImageContext.ImageSize);
+ Pages = EFI_SIZE_TO_PAGES ((UINTN) ImageContext.ImageSize);
}
FfsBuffer = 0xFFFFFFFF;
Status = gBS->AllocatePages (
|