arm-trusted-firmware/include/lib/el3_runtime
Andre Przywara bb7b85a397 refactor(context-mgmt): move FEAT_FGT save/restore code into C
At the moment we do the EL2 context save/restore sequence in assembly,
where it is just guarded by #ifdef statement for the build time flags.
This does not cover the FEAT_STATE_CHECK case, where we need to check
for the runtime availability of a feature.

To simplify this extension, and to avoid writing too much code in
assembly, move that sequence into C: it is called from C context
anyways.

This protects the C code with the new version of the is_xxx_present()
check, which combines both build time and runtime check, as necessary,
and allows the compiler to optimise the calls aways, if we don't need
them.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Change-Id: I7c91bec60efcc00a43429dc0381f7e1c203be780
2023-01-11 16:02:58 +00:00
..
aarch32 coverity: fix MISRA violations 2020-02-18 10:47:46 -06:00
aarch64 refactor(context-mgmt): move FEAT_FGT save/restore code into C 2023-01-11 16:02:58 +00:00
context_mgmt.h refactor(context mgmt): add cm_prepare_el3_exit_ns function 2022-04-12 17:42:11 +02:00
cpu_data.h feat(rme): add context management changes for FEAT_RME 2021-10-05 18:41:35 +02:00
pubsub.h Merge pull request from vwadekar/tegra-scatter-file-support 2019-03-01 11:23:58 +00:00
pubsub_events.h Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00