]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/BdsLib: Support ignoring EfiReservedMemoryType when updating the FDT.
authorGarrett Kirkendall <garrett.kirkendall@amd.com>
Mon, 24 Feb 2014 16:27:48 +0000 (16:27 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 24 Feb 2014 16:27:48 +0000 (16:27 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
Reviewed-By: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15255 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/BdsLib/BdsLinuxFdt.c

index ae302aff8a5c67cd835cd4072e04bddbd282a3cd..5ca24d7a7df8e34790c9294588986ae5c0b1f5e9 100644 (file)
@@ -207,6 +207,7 @@ IsLinuxReservedRegion (
   case EfiUnusableMemory:\r
   case EfiACPIReclaimMemory:\r
   case EfiACPIMemoryNVS:\r
+  case EfiReservedMemoryType:\r
     return TRUE;\r
   default:\r
     return FALSE;\r
@@ -500,7 +501,7 @@ PrepareFdt (
     MemoryMapPtr = MemoryMap;\r
     for (Index = 0; Index < (MemoryMapSize / DescriptorSize); Index++) {\r
       if (IsLinuxReservedRegion ((EFI_MEMORY_TYPE)MemoryMapPtr->Type)) {\r
-        DEBUG((DEBUG_VERBOSE, "Reserved region of type %d [0x%X, 0x%X]\n",\r
+        DEBUG((DEBUG_VERBOSE, "Reserved region of type %d [0x%lX, 0x%lX]\n",\r
             MemoryMapPtr->Type,\r
             (UINTN)MemoryMapPtr->PhysicalStart,\r
             (UINTN)(MemoryMapPtr->PhysicalStart + MemoryMapPtr->NumberOfPages * EFI_PAGE_SIZE)));\r