Core: Move thread context into runtime data struct
Move the struct tfm_thrd_ctx sp_thrd into struct
spm_partition_runtime_data_t runtime_data.
Change-Id: Id9dac3f509994029732855098baf1b03e21f5e2c
Signed-off-by: Summer Qin <summer.qin@arm.com>
diff --git a/secure_fw/spm/spm_api.h b/secure_fw/spm/spm_api.h
index 75b921c..aebcc5a 100644
--- a/secure_fw/spm/spm_api.h
+++ b/secure_fw/spm/spm_api.h
@@ -18,6 +18,7 @@
#include "tfm_wait.h"
#include "tfm_message_queue.h"
#include "tfm_secure_api.h"
+#include "tfm_thread.h"
#endif
#define SPM_INVALID_PARTITION_IDX (~0U)
@@ -86,6 +87,7 @@
struct tfm_event_t signal_evnt; /* Event signal */
uint32_t signals; /* Service signals had been triggered*/
struct tfm_list_node_t service_list;/* Service list */
+ struct tfm_thrd_ctx sp_thrd; /* Thread context */
#else /* TFM_PSA_API */
uint32_t partition_state;
uint32_t caller_partition_idx;