summaryrefslogtreecommitdiffstats
path: root/ArmPkg/Include
diff options
context:
space:
mode:
authorEvan Lloyd <evan.lloyd@arm.com>2016-03-02 21:08:46 +0000
committerLeif Lindholm <leif.lindholm@linaro.org>2016-03-03 18:23:54 +0000
commitff1f27c055c9dd78eb457bbf8cb7511060e3ee0b (patch)
tree92eeb82298075755d7f13d32bd73196e182d4b19 /ArmPkg/Include
parenteea222ced0f8b40b2b02e9da31cca33ca6688faf (diff)
downloadedk2-ff1f27c055c9dd78eb457bbf8cb7511060e3ee0b.tar.gz
edk2-ff1f27c055c9dd78eb457bbf8cb7511060e3ee0b.tar.bz2
edk2-ff1f27c055c9dd78eb457bbf8cb7511060e3ee0b.zip
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>
Diffstat (limited to 'ArmPkg/Include')
-rw-r--r--ArmPkg/Include/Library/ArmLib.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmLib.h
index 85fa1f600b..15f610d82e 100644
--- a/ArmPkg/Include/Library/ArmLib.h
+++ b/ArmPkg/Include/Library/ArmLib.h
@@ -1,7 +1,7 @@
/** @file
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
- Copyright (c) 2011 - 2015, ARM Ltd. All rights reserved.<BR>
+ Copyright (c) 2011 - 2016, ARM Ltd. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -353,6 +353,12 @@ ArmSetTTBR0 (
IN VOID *TranslationTableBase
);
+VOID
+EFIAPI
+ArmSetTTBCR (
+ IN UINT32 Bits
+ );
+
VOID *
EFIAPI
ArmGetTTBR0BaseAddress (