From 0086fca024d3ada1073a061f141ca898d8009ca9 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Tue, 16 Jul 2013 03:06:24 +0000 Subject: Fix IA32 build failure. Signed-off-by: Ruiyu Ni git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14472 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/LoadLinuxLib/Linux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/Library/LoadLinuxLib/Linux.c b/OvmfPkg/Library/LoadLinuxLib/Linux.c index c714225..cd673aa 100644 --- a/OvmfPkg/Library/LoadLinuxLib/Linux.c +++ b/OvmfPkg/Library/LoadLinuxLib/Linux.c @@ -349,15 +349,15 @@ SetupLinuxMemmap ( if ((LastE820 != NULL) && (LastE820->type == (UINT32) E820Type) && (MemoryMap->PhysicalStart == LastEndAddr)) { - LastE820->size += EFI_PAGES_TO_SIZE (MemoryMap->NumberOfPages); - LastEndAddr += EFI_PAGES_TO_SIZE (MemoryMap->NumberOfPages); + LastE820->size += EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages); + LastEndAddr += EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages); } else { if (E820EntryCount >= (sizeof (Bp->e820_map) / sizeof (Bp->e820_map[0]))) { break; } E820->type = (UINT32) E820Type; E820->addr = MemoryMap->PhysicalStart; - E820->size = EFI_PAGES_TO_SIZE (MemoryMap->NumberOfPages); + E820->size = EFI_PAGES_TO_SIZE ((UINTN) MemoryMap->NumberOfPages); LastE820 = E820; LastEndAddr = E820->addr + E820->size; E820++; -- cgit v1.1