]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/CpuDxe: Fixed AArch64 MMU
authorOlivier Martin <Olivier.Martin@arm.com>
Mon, 6 Jul 2015 16:53:37 +0000 (16:53 +0000)
committeroliviermartin <oliviermartin@Edk2>
Mon, 6 Jul 2015 16:53:37 +0000 (16:53 +0000)
When the function that determines the size of a contiguous region
was returning from a sub-level table scanning it was forgetting to
move to the next entry of its own level table.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17832 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Drivers/CpuDxe/AArch64/Mmu.c

index 6cba1218c61c532e7f18a7437b32fe2ec80f4a51..d8bb41978066334e8b88cd43b0df3051a9e717a2 100644 (file)
@@ -279,6 +279,9 @@ GetMemoryRegionRec (
     if (!EFI_ERROR(Status)) {\r
       return EFI_SUCCESS;\r
     }\r
     if (!EFI_ERROR(Status)) {\r
       return EFI_SUCCESS;\r
     }\r
+\r
+    // Now we processed the table move to the next entry\r
+    BlockEntry++;\r
   } else if (EntryType == BlockEntryType) {\r
     // We have found the BlockEntry attached to the address. We save its start address (the start\r
     // address might be before the 'BaseAdress') and attributes\r
   } else if (EntryType == BlockEntryType) {\r
     // We have found the BlockEntry attached to the address. We save its start address (the start\r
     // address might be before the 'BaseAdress') and attributes\r