summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Library
diff options
context:
space:
mode:
authorGarrett Kirkendall <garrett.kirkendall@amd.com>2014-02-24 16:27:48 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-02-24 16:27:48 +0000
commitb83a92b34e1cea8b7f697bbad228c694278dfb8c (patch)
tree1dcadcbc4115179e5418ad06e37e31457088303b /ArmPkg/Library
parent1f9c86067477e7e898773518a244a09ebb086385 (diff)
downloadedk2-b83a92b34e1cea8b7f697bbad228c694278dfb8c.tar.gz
edk2-b83a92b34e1cea8b7f697bbad228c694278dfb8c.tar.bz2
edk2-b83a92b34e1cea8b7f697bbad228c694278dfb8c.zip
ArmPkg/BdsLib: Support ignoring EfiReservedMemoryType when updating the FDT.
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
Diffstat (limited to 'ArmPkg/Library')
-rw-r--r--ArmPkg/Library/BdsLib/BdsLinuxFdt.c3
1 files changed, 2 insertions, 1 deletions
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)));