Revert "SPM: Remove tfm_spm_get_msg_buffer_from_conn_handle"
This reverts commit ae8965e14264973890a9a03c061264c750703d06.
Revert because it was merged by accident without enough review.
Change-Id: I454513b4a157312b658473a6c79ee9ef410245ce
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.c b/secure_fw/spm/cmsis_psa/spm_ipc.c
index e05cb8d..b1ec03f 100644
--- a/secure_fw/spm/cmsis_psa/spm_ipc.c
+++ b/secure_fw/spm/cmsis_psa/spm_ipc.c
@@ -485,6 +485,14 @@
return p_msg;
}
+struct tfm_msg_body_t *
+ tfm_spm_get_msg_buffer_from_conn_handle(struct tfm_conn_handle_t *conn_handle)
+{
+ TFM_CORE_ASSERT(conn_handle != NULL);
+
+ return &(conn_handle->internal_msg);
+}
+
void tfm_spm_fill_msg(struct tfm_msg_body_t *msg,
struct tfm_spm_service_t *service,
psa_handle_t handle,