aboutsummaryrefslogtreecommitdiff
path: root/plat/fvp/aarch64
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2013-11-15 14:46:44 +0000
committerDan Handley <dan.handley@arm.com>2013-11-27 15:31:06 +0000
commit295538bc374bab20ea6ec68137cbee5997b541c6 (patch)
tree750c7eba5030d3192d7281fe6ec0e1b22f1fc0ee /plat/fvp/aarch64
parent3738274dc1b40ad846d41d7bfd6a597bcfba9e70 (diff)
downloadarm-trusted-firmware-295538bc374bab20ea6ec68137cbee5997b541c6.tar.gz
AArch64: Remove EL-agnostic TLB helper functions
Also, don't invalidate the TLBs in disable_mmu() function, it's better to do it in enable_mmu() function just before actually enabling the MMU. Change-Id: Ib32d6660019b0b2c17254156aad4be67ab4970e1
Diffstat (limited to 'plat/fvp/aarch64')
-rw-r--r--plat/fvp/aarch64/fvp_common.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plat/fvp/aarch64/fvp_common.c b/plat/fvp/aarch64/fvp_common.c
index 78a44a5..0b5f4eb 100644
--- a/plat/fvp/aarch64/fvp_common.c
+++ b/plat/fvp/aarch64/fvp_common.c
@@ -461,7 +461,7 @@ void enable_mmu()
TCR_RGN_INNER_WBA | TCR_T0SZ_4GB;
if (GET_EL(current_el) == MODE_EL3) {
tcr |= TCR_EL3_RES1;
- /* Invalidate all TLBs */
+ /* Invalidate EL3 TLBs */
tlbialle3();
} else {
/* Invalidate EL1 TLBs */
@@ -491,9 +491,6 @@ void disable_mmu(void)
write_ttbr0(0);
write_sctlr(0);
- /* Invalidate TLBs of the CurrentEL */
- tlbiall();
-
/* Flush the caches */
dcsw_op_all(DCCISW);