summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorOlivier Deprez <olivier.deprez@arm.com>2019-10-28 08:52:45 +0000
committerMax Shvetsov <maksims.svecovs@arm.com>2020-08-20 18:06:06 +0100
commitc0267cc9947ac04478f6f0e54dbbfc7f8c02f6a0 (patch)
tree781bc02143c690d3bc62ce678420ffaa1ab74d67 /services
parent1566bc3e53837eb40b7027e20c0bc352be52626d (diff)
SPMD: entry point info get helper
This patch provides a helper to get the entry_point_info structure used by the boot CPU as it is used to initialise the SPMC context on secondary CPUs. Change-Id: I99087dc7a86a7258e545d24a2ff06aa25170f00c Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
Diffstat (limited to 'services')
-rw-r--r--services/std_svc/spmd/spmd_main.c8
-rw-r--r--services/std_svc/spmd/spmd_private.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/services/std_svc/spmd/spmd_main.c b/services/std_svc/spmd/spmd_main.c
index 4c2b58df2..b551add01 100644
--- a/services/std_svc/spmd/spmd_main.c
+++ b/services/std_svc/spmd/spmd_main.c
@@ -52,6 +52,14 @@ spmd_spm_core_context_t *spmd_get_context(void)
}
/*******************************************************************************
+ * SPM Core entry point information get helper.
+ ******************************************************************************/
+entry_point_info_t *spmd_spmc_ep_info_get(void)
+{
+ return spmc_ep_info;
+}
+
+/*******************************************************************************
* Static function declaration.
******************************************************************************/
static int32_t spmd_init(void);
diff --git a/services/std_svc/spmd/spmd_private.h b/services/std_svc/spmd/spmd_private.h
index 494630907..da66ee3c2 100644
--- a/services/std_svc/spmd/spmd_private.h
+++ b/services/std_svc/spmd/spmd_private.h
@@ -65,6 +65,9 @@ __dead2 void spmd_spm_core_sync_exit(uint64_t rc);
uint64_t spmd_spm_core_enter(uint64_t *c_rt_ctx);
void __dead2 spmd_spm_core_exit(uint64_t c_rt_ctx, uint64_t ret);
+/* SPMC entry point information helper */
+entry_point_info_t *spmd_spmc_ep_info_get(void);
+
/* SPMC context on current CPU get helper */
spmd_spm_core_context_t *spmd_get_context(void);