From c0267cc9947ac04478f6f0e54dbbfc7f8c02f6a0 Mon Sep 17 00:00:00 2001 From: Olivier Deprez Date: Mon, 28 Oct 2019 08:52:45 +0000 Subject: [PATCH] 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 --- services/std_svc/spmd/spmd_main.c | 8 ++++++++ services/std_svc/spmd/spmd_private.h | 3 +++ 2 files changed, 11 insertions(+) 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 @@ -51,6 +51,14 @@ spmd_spm_core_context_t *spmd_get_context(void) return &spm_core_context[linear_id]; } +/******************************************************************************* + * SPM Core entry point information get helper. + ******************************************************************************/ +entry_point_info_t *spmd_spmc_ep_info_get(void) +{ + return spmc_ep_info; +} + /******************************************************************************* * Static function declaration. ******************************************************************************/ 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);