Home
last modified time | relevance | path

Searched hist:"0 aa3284a45ccf4405cda0bb76f6b16a33e87f222" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/lib/el3_runtime/aarch64/
H A Dcontext_mgmt.c0aa3284a45ccf4405cda0bb76f6b16a33e87f222 Wed Jul 17 14:52:08 UTC 2024 Jagdish Gediya <jagdish.gediya@arm.com> fix(context-mgmt): keep actlr_el2 value in the init context

The system register actlr_el2 can be set during CPU or platform reset
handler. E.g. on Arm Total Compute platform, the CLUSTERPMUEN bit of
actlr_el2 is set in the platform reset handler to enable the write
access to DSU PMU registers from EL1. However, as EL2 context gets
restored without saving it beforehand during jump to SPM and next NS
image, therefore, the initialized value of actlr_el2 is not retained.

To fix this issue, keep track of actlr_el2 value during the EL2 context
initialization. This applies for both secure and non-secure security
state.

Change-Id: I1bd7b984216c042c056ad20c6724bedce5a6a3e2
Signed-off-by: Jagdish Gediya <jagdish.gediya@arm.com>
Signed-off-by: Leo Yan <leo.yan@arm.com>