]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/ArmMmuLib: permit initial configuration with MMU enabled
authorArd Biesheuvel <ardb@kernel.org>
Sat, 2 Jul 2022 13:14:28 +0000 (15:14 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 19 Oct 2022 09:07:13 +0000 (09:07 +0000)
commit999c53e2caf4a97538c7960f8c2862098541ffb8
treea768276e9b8e34ad11ba90436a013f19a9e6728c
parent0487cac09f23f2f3e3258b903937dc1d45426096
ArmPkg/ArmMmuLib: permit initial configuration with MMU enabled

Permit the use of this library with the MMU and caches already enabled.
This removes the need for any cache maintenance for coherency, and is
generally better for robustness and performance, especially when running
under virtualization.

Note that this means we have to defer assignment of TTBR0 until the
page tables are ready to be used, and so UpdateRegionMapping() can no
longer read back TTBR0 directly to discover the root table address.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Leif Lindholm <quic_llindhol@quicinc.com>
ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c