From b83a92b34e1cea8b7f697bbad228c694278dfb8c Mon Sep 17 00:00:00 2001 From: Garrett Kirkendall Date: Mon, 24 Feb 2014 16:27:48 +0000 Subject: [PATCH] ArmPkg/BdsLib: Support ignoring EfiReservedMemoryType when updating the FDT. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Garrett Kirkendall Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15255 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/BdsLib/BdsLinuxFdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArmPkg/Library/BdsLib/BdsLinuxFdt.c b/ArmPkg/Library/BdsLib/BdsLinuxFdt.c index ae302aff8a..5ca24d7a7d 100644 --- a/ArmPkg/Library/BdsLib/BdsLinuxFdt.c +++ b/ArmPkg/Library/BdsLib/BdsLinuxFdt.c @@ -207,6 +207,7 @@ IsLinuxReservedRegion ( case EfiUnusableMemory: case EfiACPIReclaimMemory: case EfiACPIMemoryNVS: + case EfiReservedMemoryType: return TRUE; default: return FALSE; @@ -500,7 +501,7 @@ PrepareFdt ( MemoryMapPtr = MemoryMap; for (Index = 0; Index < (MemoryMapSize / DescriptorSize); Index++) { if (IsLinuxReservedRegion ((EFI_MEMORY_TYPE)MemoryMapPtr->Type)) { - DEBUG((DEBUG_VERBOSE, "Reserved region of type %d [0x%X, 0x%X]\n", + DEBUG((DEBUG_VERBOSE, "Reserved region of type %d [0x%lX, 0x%lX]\n", MemoryMapPtr->Type, (UINTN)MemoryMapPtr->PhysicalStart, (UINTN)(MemoryMapPtr->PhysicalStart + MemoryMapPtr->NumberOfPages * EFI_PAGE_SIZE)));