]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c
ArmPkg/AArch64Mmu: move page table traversal code to separate function
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 8 Oct 2015 18:52:06 +0000 (18:52 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Thu, 8 Oct 2015 18:52:06 +0000 (18:52 +0000)
commit5ab77c6630317f0ab2da1892e6d36a4b83e06a2f
tree45c2228bb2b746e78ebc4c0cb75bd715429d3f99
parent2afeabd1a9cee51745f51b7b51d02f19c0a36429
ArmPkg/AArch64Mmu: move page table traversal code to separate function

Move the page table traversal and splitting logic to a separate function
UpdateRegionMapping() and refactor it slightly so we can reuse it later to
implement non-executable regions, for the stack. This primarly involves
adding a value/mask pair to the function prototype that allows us to flip
arbitrary bits on each block entry as the page tables are traversed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18586 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Library/ArmLib/AArch64/AArch64Mmu.c