if ((EfiMemoryDescriptor[Index].Type == EfiConventionalMemory) && \r
(EfiMemoryDescriptor[Index].NumberOfPages >= NoPages)) {\r
if (EfiMemoryDescriptor[Index].PhysicalStart > MaxPhysicalStart) {\r
- if (EfiMemoryDescriptor[Index].PhysicalStart + LShiftU64(EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIFT) <= 0x100000000) {\r
+ if (EfiMemoryDescriptor[Index].PhysicalStart + LShiftU64(EfiMemoryDescriptor[Index].NumberOfPages, EFI_PAGE_SHIFT) <= 0x100000000ULL) {\r
MaxPhysicalStart = EfiMemoryDescriptor[Index].PhysicalStart;\r
MaxNoPages = EfiMemoryDescriptor[Index].NumberOfPages;\r
CurrentMemoryDescriptor = &EfiMemoryDescriptor[Index];\r
//\r
// Update Memory Ceiling\r
//\r
- if ((BaseAddress >= 0x100000) && (BaseAddress < 0x100000000)) {\r
+ if ((BaseAddress >= 0x100000) && (BaseAddress < 0x100000000ULL)) {\r
if (Ceiling > BaseAddress) {\r
Ceiling = BaseAddress;\r
}\r
for (Index = 0; Index < *NumberOfMemoryMapEntries; Index++) {\r
if ((EfiMemoryDescriptor[Index].Type == EfiConventionalMemory) &&\r
(EfiMemoryDescriptor[Index].PhysicalStart > 0x100000) && \r
- (EfiMemoryDescriptor[Index].PhysicalStart < 0x100000000)) {\r
+ (EfiMemoryDescriptor[Index].PhysicalStart < 0x100000000ULL)) {\r
if (EfiMemoryDescriptor[Index].PhysicalStart >= Ceiling) {\r
EfiMemoryDescriptor[Index].Type = EfiReservedMemoryType;\r
}\r