]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(context mgmt): add cm_prepare_el3_exit_ns function
authorZelalem Aweke <zelalem.aweke@arm.com>
Mon, 31 Jan 2022 22:59:42 +0000 (16:59 -0600)
committerJoanna Farley <joanna.farley@arm.com>
Tue, 12 Apr 2022 15:42:11 +0000 (17:42 +0200)
commit8b95e8487006ff77a7d84fba5bd20ba7e68d8330
treed7ac71ff571d2631984c20a02daf1715190f5dfa
parentfd5da7a84731e9687f56c263ff3aa8ebed75075a
refactor(context mgmt): add cm_prepare_el3_exit_ns function

As part of the RFC:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/13651,
this patch adds the 'cm_prepare_el3_exit_ns' function. The function is
a wrapper to 'cm_prepare_el3_exit' function for Non-secure state.

When EL2 sysregs context exists (CTX_INCLUDE_EL2_REGS is
enabled) EL1 and EL2 sysreg values are restored from the context
instead of directly updating the registers.

Signed-off-by: Zelalem Aweke <zelalem.aweke@arm.com>
Change-Id: I9b071030576bb05500d54090e2a03b3f125d1653
bl31/bl31_main.c
include/lib/el3_runtime/context_mgmt.h
lib/el3_runtime/aarch32/context_mgmt.c
lib/el3_runtime/aarch64/context_mgmt.c
lib/psci/psci_on.c
lib/psci/psci_suspend.c
plat/arm/common/aarch64/execution_state_switch.c
services/std_svc/rmmd/rmmd_main.c