From ffdc1867778e0282f63ea74f04d481d529d6a533 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 3 Feb 2009 00:49:30 +0000 Subject: Clean up EfiLdr: Refine code to pass CYGWIN GCC tool chain build git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7405 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/EfiLdr/Support.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'DuetPkg/EfiLdr') diff --git a/DuetPkg/EfiLdr/Support.c b/DuetPkg/EfiLdr/Support.c index 0335d20e5a..ea3583a0f6 100644 --- a/DuetPkg/EfiLdr/Support.c +++ b/DuetPkg/EfiLdr/Support.c @@ -111,7 +111,7 @@ FindSpace ( if ((EfiMemoryDescriptor[Index].Type == EfiConventionalMemory) && (EfiMemoryDescriptor[Index].NumberOfPages >= NoPages)) { if (EfiMemoryDescriptor[Index].PhysicalStart > MaxPhysicalStart) { - if (EfiMemoryDescriptor[Index].PhysicalStart + LShiftU64(EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIFT) <= 0x100000000) { + if (EfiMemoryDescriptor[Index].PhysicalStart + LShiftU64(EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIFT) <= 0x100000000ULL) { MaxPhysicalStart = EfiMemoryDescriptor[Index].PhysicalStart; MaxNoPages = EfiMemoryDescriptor[Index].NumberOfPages; CurrentMemoryDescriptor = &EfiMemoryDescriptor[Index]; @@ -206,7 +206,7 @@ GenMemoryMap ( // // Update Memory Ceiling // - if ((BaseAddress >= 0x100000) && (BaseAddress < 0x100000000)) { + if ((BaseAddress >= 0x100000) && (BaseAddress < 0x100000000ULL)) { if (Ceiling > BaseAddress) { Ceiling = BaseAddress; } @@ -228,7 +228,7 @@ GenMemoryMap ( for (Index = 0; Index < *NumberOfMemoryMapEntries; Index++) { if ((EfiMemoryDescriptor[Index].Type == EfiConventionalMemory) && (EfiMemoryDescriptor[Index].PhysicalStart > 0x100000) && - (EfiMemoryDescriptor[Index].PhysicalStart < 0x100000000)) { + (EfiMemoryDescriptor[Index].PhysicalStart < 0x100000000ULL)) { if (EfiMemoryDescriptor[Index].PhysicalStart >= Ceiling) { EfiMemoryDescriptor[Index].Type = EfiReservedMemoryType; } -- cgit v1.2.3