]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Clean up EfiLdr:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 3 Feb 2009 00:49:30 +0000 (00:49 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 3 Feb 2009 00:49:30 +0000 (00:49 +0000)
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

index 0335d20e5aa66b89b1d7df7d5c4e0610c1e87090..ea3583a0f659d115764777c2449cbb8c5809c488 100644 (file)
@@ -111,7 +111,7 @@ FindSpace (
     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
@@ -206,7 +206,7 @@ GenMemoryMap (
       //\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
@@ -228,7 +228,7 @@ GenMemoryMap (
   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