mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
fix(cm): save guarded control stack registers
This patch fixes a typo which led to incorrect context save operations for two FEAT_GCS registers. Change-Id: I3d3202a6721714bbc8f84c2d775d1b28afffa5df Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
This commit is contained in:
parent
79da348916
commit
6aae3acfd0
1 changed files with 2 additions and 2 deletions
|
@ -1342,8 +1342,8 @@ void cm_el2_sysregs_context_save(uint32_t security_state)
|
|||
}
|
||||
|
||||
if (is_feat_gcs_supported()) {
|
||||
write_el2_ctx_gcs(el2_sysregs_ctx, gcscr_el2, read_gcspr_el2());
|
||||
write_el2_ctx_gcs(el2_sysregs_ctx, gcspr_el2, read_gcscr_el2());
|
||||
write_el2_ctx_gcs(el2_sysregs_ctx, gcscr_el2, read_gcscr_el2());
|
||||
write_el2_ctx_gcs(el2_sysregs_ctx, gcspr_el2, read_gcspr_el2());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue