diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-05-22 10:09:10 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-05-23 13:50:18 +0100 |
commit | 1634cae89d0e62853f6addbbaef8557893ee5613 (patch) | |
tree | f2ae030a37ab96c7ba2ba04905087d82e7a77997 /include | |
parent | 41e48fed9a2ccecf7e8a53b8ad5574d038176dd7 (diff) | |
download | platform_external_arm-trusted-firmware-1634cae89d0e62853f6addbbaef8557893ee5613.tar.gz platform_external_arm-trusted-firmware-1634cae89d0e62853f6addbbaef8557893ee5613.tar.bz2 platform_external_arm-trusted-firmware-1634cae89d0e62853f6addbbaef8557893ee5613.zip |
context_mgmt: Make cm_init_context_common public
This function can be currently accessed through the wrappers
cm_init_context_by_index() and cm_init_my_context(). However, they only
work on contexts that are associated to a CPU.
By making this function public, it is possible to set up a context that
isn't associated to any CPU. For consistency, it has been renamed to
cm_setup_context().
Change-Id: Ib2146105abc8137bab08745a8adb30ca2c4cedf4
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/lib/el3_runtime/context_mgmt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/lib/el3_runtime/context_mgmt.h b/include/lib/el3_runtime/context_mgmt.h index eb7a95345..e3f7726a8 100644 --- a/include/lib/el3_runtime/context_mgmt.h +++ b/include/lib/el3_runtime/context_mgmt.h @@ -7,11 +7,11 @@ #ifndef __CM_H__ #define __CM_H__ -#ifndef AARCH32 #include <arch.h> #include <assert.h> +#include <context.h> +#include <context_mgmt.h> #include <stdint.h> -#endif /******************************************************************************* * Forward declarations @@ -32,6 +32,7 @@ void cm_set_context(void *context, uint32_t security_state); void cm_init_my_context(const struct entry_point_info *ep); void cm_init_context_by_index(unsigned int cpu_idx, const struct entry_point_info *ep); +void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep); void cm_prepare_el3_exit(uint32_t security_state); #ifndef AARCH32 |