refactor(cm): gather per-world context management to the same place
The per-world calls are disparate - they get called in different places,
are guarded in different ways, and the code is apart.
Since they just need to be called once at boot, add a function that we
can call from BL31 and be done with it.
Change-Id: Id0ade302e35f2b00ca37c552a53038942ab7b58e
Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
diff --git a/bl31/bl31_main.c b/bl31/bl31_main.c
index ba26366..4d641d3 100644
--- a/bl31/bl31_main.c
+++ b/bl31/bl31_main.c
@@ -123,8 +123,8 @@
/* Init registers that never change for the lifetime of TF-A */
cm_manage_extensions_el3(plat_my_core_pos());
- /* Init per-world context registers for non-secure world */
- manage_extensions_nonsecure_per_world();
+ /* Init per-world context registers */
+ cm_manage_extensions_per_world();
NOTICE("BL31: %s\n", build_version_string);
NOTICE("BL31: %s\n", build_message);