]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/CpuDxe: Fixed the condition that checks if the level-1 descriptor points to...
authorOlivier Martin <olivier.martin@arm.com>
Mon, 23 Sep 2013 09:38:53 +0000 (09:38 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 23 Sep 2013 09:38:53 +0000 (09:38 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14700 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Drivers/CpuDxe/ArmV6/Mmu.c

index 2896f708a44c773e93d5801de6fe7c259c47c7c4..18778f3ac6636f41f7bc4ceb4408f0a9fc0e2ee9 100644 (file)
@@ -851,7 +851,7 @@ GetMemoryRegion (
     SectionDescriptor = FirstLevelTable[TableIndex];\r
 \r
     // If the entry is a level-2 page table then we scan it to find the end of the region\r
-    if ((SectionDescriptor & TT_DESCRIPTOR_SECTION_TYPE_MASK) == TT_DESCRIPTOR_SECTION_TYPE_PAGE_TABLE) {\r
+    if (TT_DESCRIPTOR_SECTION_TYPE_IS_PAGE_TABLE (SectionDescriptor)) {\r
       // Extract the page table location from the descriptor\r
       PageTable = (UINT32*)(SectionDescriptor & TT_DESCRIPTOR_SECTION_PAGETABLE_ADDRESS_MASK);\r
 \r