summaryrefslogtreecommitdiff
path: root/plat/layerscape/common/ls_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'plat/layerscape/common/ls_common.c')
-rw-r--r--plat/layerscape/common/ls_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/layerscape/common/ls_common.c b/plat/layerscape/common/ls_common.c
index abf6525b..afd5927c 100644
--- a/plat/layerscape/common/ls_common.c
+++ b/plat/layerscape/common/ls_common.c
@@ -147,7 +147,7 @@ uint32_t ls_get_spsr_for_bl33_entry(void)
uint32_t spsr;
/* Figure out what mode we enter the non-secure world in */
- mode = EL_IMPLEMENTED(2) ? MODE_EL2 : MODE_EL1;
+ mode = (el_implemented(2) != EL_IMPL_NONE) ? MODE_EL2 : MODE_EL1;
/*
* TODO: Consider the possibility of specifying the SPSR in