aboutsummaryrefslogtreecommitdiff
path: root/plat/fvp/aarch64/plat_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'plat/fvp/aarch64/plat_common.c')
-rw-r--r--plat/fvp/aarch64/plat_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plat/fvp/aarch64/plat_common.c b/plat/fvp/aarch64/plat_common.c
index edeb6e0..9e205a0 100644
--- a/plat/fvp/aarch64/plat_common.c
+++ b/plat/fvp/aarch64/plat_common.c
@@ -52,7 +52,6 @@ static unsigned long platform_config[CONFIG_LIMIT];
void enable_mmu()
{
unsigned long mair, tcr, ttbr, sctlr;
- unsigned long current_el = read_current_el();
/* Set the attributes in the right indices of the MAIR */
mair = MAIR_ATTR_SET(ATTR_DEVICE, ATTR_DEVICE_INDEX);
@@ -68,7 +67,7 @@ void enable_mmu()
/* Set TTBR bits as well */
ttbr = (unsigned long) l1_xlation_table;
- if (GET_EL(current_el) == MODE_EL3) {
+ if (IS_IN_EL3()) {
assert((read_sctlr_el3() & SCTLR_M_BIT) == 0);
write_mair_el3(mair);