]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg: Configure TTBCR register
authorEvan Lloyd <evan.lloyd@arm.com>
Wed, 2 Mar 2016 21:08:46 +0000 (21:08 +0000)
committerLeif Lindholm <leif.lindholm@linaro.org>
Thu, 3 Mar 2016 18:23:54 +0000 (18:23 +0000)
commitff1f27c055c9dd78eb457bbf8cb7511060e3ee0b
tree92eeb82298075755d7f13d32bd73196e182d4b19
parenteea222ced0f8b40b2b02e9da31cca33ca6688faf
ArmPkg: Configure TTBCR register

Architecturally, the TTBCR register value is undefined at reset for
Non-Secure.
On some platforms the reset value for TTBCR is not zero and
this causes a data abort exception once the MMU is enabled.

This patch configures the TTBCR register to enable translation table
walk using TTBR0.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
ArmPkg/Include/Library/ArmLib.h
ArmPkg/Library/ArmLib/ArmV7/ArmV7Mmu.c
ArmPkg/Library/ArmLib/Common/Arm/ArmLibSupport.S
ArmPkg/Library/ArmLib/Common/Arm/ArmLibSupport.asm