mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
Merge "feat(feat_sctlr2): enable FEAT_SCTLR2 for Realm world" into integration
This commit is contained in:
commit
830ed3927a
1 changed files with 7 additions and 0 deletions
|
@ -183,6 +183,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