arm-trusted-firmware/bl31
Manish Pandey e61713b007 fix(el3_runtime): do not save scr_el3 during EL3 entry
scr_el3 registers cannot be modified in lower ELs which means it retains
the same value which is stored in the EL3 cpu context structure for the
given world. So, we should not save the register when entering to EL3
from lower EL as we have the copy of it present in cpu context.

During EL3 execution SCR_EL3 value can be modifed for following cases
 1. Changes which is required for EL3 execution, this change is temp
    and do not need to be saved.
 2. Changes which affects lower EL execution, these changes need to be
    written to cpu context as well and will be retrieved when scr_el3
    is restored as part of exiting EL3

Signed-off-by: Manish Pandey <manish.pandey2@arm.com>
Change-Id: I9cc984ddf50e27d09e361bd83b1b3c9f068cf2fd
2022-12-14 14:44:43 +00:00
..
aarch64 fix(el3_runtime): do not save scr_el3 during EL3 entry 2022-12-14 14:44:43 +00:00
bl31.ld.S Merge "refactor(bl31): introduce vendor extend rodata section" into integration 2022-08-16 02:12:01 +02:00
bl31.mk feat(drtm): add remediation driver support in DRTM 2022-10-05 15:25:28 +01:00
bl31_context_mgmt.c feat(rme): add context management changes for FEAT_RME 2021-10-05 18:41:35 +02:00
bl31_main.c refactor(context mgmt): add cm_prepare_el3_exit_ns function 2022-04-12 17:42:11 +02:00
ehf.c fix(bl31): allow use of EHF with S-EL2 SPMC 2022-08-30 08:29:25 -07:00
interrupt_mgmt.c Use correct type when reading SCR register 2020-01-28 11:10:48 +00:00