SPMD: [EXP] Export entry point info as a global variable
This patch converts the local entry_point_info structure used on the boot cpu to
a global as it will be used to initialise the SPMC context on secondary CPUs in
future patches.
Signed-off-by: Achin Gupta <achin.gupta@arm.com>
diff --git a/services/std_svc/spmd/spmd_main.c b/services/std_svc/spmd/spmd_main.c
index 33f1119..52226cc 100644
--- a/services/std_svc/spmd/spmd_main.c
+++ b/services/std_svc/spmd/spmd_main.c
@@ -36,6 +36,12 @@
spmc_manifest_sect_attribute_t spmc_attrs;
/*******************************************************************************
+ * SPM Core entry point information. Discovered on the primary core and reused
+ * on secondary cores.
+ ******************************************************************************/
+entry_point_info_t *spmc_ep_info;
+
+/*******************************************************************************
* This function takes an SP context pointer and performs a synchronous entry
* into it.
******************************************************************************/
@@ -116,7 +122,6 @@
int rc;
void *rd_base;
size_t rd_size;
- entry_point_info_t *spmc_ep_info;
uintptr_t rd_base_align;
uintptr_t rd_size_align;
uint32_t ep_attr;