diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-10-31 15:25:35 +0000 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-01 14:15:39 +0000 |
commit | a0fee7474fb946fcbcd43c4947cf113147e26301 (patch) | |
tree | da05ee3a1ec652ea8aede81f84af0d4e48237a8c /plat/arm/common | |
parent | 3c1fb7a7006b2cd076d958aa8ba14eba25e82de8 (diff) |
context_mgmt: Fix MISRA defects
The macro EL_IMPLEMENTED() has been deprecated in favour of the new
function el_implemented().
Change-Id: Ic9b1b81480b5e019b50a050e8c1a199991bf0ca9
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'plat/arm/common')
-rw-r--r-- | plat/arm/common/arm_common.c | 2 | ||||
-rw-r--r-- | plat/arm/common/execution_state_switch.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plat/arm/common/arm_common.c b/plat/arm/common/arm_common.c index 6b147854..49f00740 100644 --- a/plat/arm/common/arm_common.c +++ b/plat/arm/common/arm_common.c @@ -63,7 +63,7 @@ uint32_t arm_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 diff --git a/plat/arm/common/execution_state_switch.c b/plat/arm/common/execution_state_switch.c index b12d82c1..8fa864d6 100644 --- a/plat/arm/common/execution_state_switch.c +++ b/plat/arm/common/execution_state_switch.c @@ -117,7 +117,7 @@ int arm_execution_state_switch(unsigned int smc_fid, * Switching from AArch64 to AArch32. Ensure this CPU implements * the target EL in AArch32. */ - impl = from_el2 ? EL_IMPLEMENTED(2) : EL_IMPLEMENTED(1); + impl = from_el2 ? el_implemented(2) : el_implemented(1); if (impl != EL_IMPL_A64_A32) goto exec_denied; |