Home
last modified time | relevance | path

Searched hist:"04825031 b2384a08504821f39e98e23bb6f93f11" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/lib/el3_runtime/aarch64/
H A Dcontext_mgmt.c04825031b2384a08504821f39e98e23bb6f93f11 Mon May 09 15:34:02 UTC 2022 Olivier Deprez <olivier.deprez@arm.com> fix(cm): add barrier before el3 ns exit

In cm_prepare_el3_exit_ns, SCR_EL3.NS bit change (to non-secure) is not
committed before the EL2 restoration sequence happens.
At ICC_SRE_EL2 write in cm_el2_sysregs_context_restore, NS is still 0
from CPU perspective (with EEL2=0) which is an invalid condition and
triggers a fault. By adding ISB, SCR_EL3 gets synced with NS=1/EEL2=0
before ICC_SRE_EL2 write.

Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Change-Id: Ie72a6152aa7729e66b3344c1b7b0749f54cafb6f