mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
feat(feat_sctlr2): enable FEAT_SCTLR2 for Realm world
Change-Id: I62e769ae796bbeb41741c2c421a5f129d875f5fb Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
This commit is contained in:
parent
98e7a83e09
commit
b17fecd6cf
1 changed files with 7 additions and 0 deletions
|
@ -182,6 +182,13 @@ static void setup_realm_context(cpu_context_t *ctx, const struct entry_point_inf
|
|||
scr_el3 |= SCR_EnSCXT_BIT;
|
||||
}
|
||||
|
||||
if (is_feat_sctlr2_supported()) {
|
||||
/* Set the SCTLR2En bit in SCR_EL3 to enable access to
|
||||
* SCTLR2_ELx registers.
|
||||
*/
|
||||
scr_el3 |= SCR_SCTLR2En_BIT;
|
||||
}
|
||||
|
||||
write_ctx_reg(state, CTX_SCR_EL3, scr_el3);
|
||||
}
|
||||
#endif /* ENABLE_RME */
|
||||
|
|
Loading…
Add table
Reference in a new issue