]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/EfiLdr/Support.c
DuetPkg: Removing ipf which is no longer supported from edk2.
[mirror_edk2.git] / DuetPkg / EfiLdr / Support.c
index 0335d20e5aa66b89b1d7df7d5c4e0610c1e87090..a0c9046935d5cb25884301f6bf1840c9fd88a1c1 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -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