HAL: Duplicates three legacy tfm_spm_hal_* APIs for IPC Model
This patch duplicates the following APIs for IPC Model in platform HAL
and renames them:
- tfm_spm_hal_get_ns_VTOR -> tfm_hal_get_ns_VTOR
- tfm_spm_hal_get_ns_entry_point -> tfm_hal_get_ns_entry_point
- tfm_spm_hal_get_ns_MSP -> tfm_hal_get_ns_MSP
This original ones are kept for Library Model for now for easier
potential deprecation of Library Model in the future.
Change-Id: Ic8196a4335514c9fa828892b6a4c90dc6ed9fd79
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/ffm/backend_ipc.c b/secure_fw/spm/ffm/backend_ipc.c
index a6c8031..4570f95 100644
--- a/secure_fw/spm/ffm/backend_ipc.c
+++ b/secure_fw/spm/ffm/backend_ipc.c
@@ -10,8 +10,8 @@
#include "compiler_ext_defs.h"
#include "spm_ipc.h"
#include "tfm_hal_isolation.h"
+#include "tfm_hal_platform.h"
#include "tfm_rpc.h"
-#include "tfm_spm_hal.h" /* To be checked */
#include "ffm/backend.h"
#include "utilities.h"
#include "load/partition_defs.h"
@@ -116,7 +116,7 @@
TO_THREAD_PRIORITY(PARTITION_PRIORITY(p_pldi->flags)));
if (p_pldi->pid == TFM_SP_NON_SECURE_ID) {
- p_param = (void *)tfm_spm_hal_get_ns_entry_point();
+ p_param = (void *)tfm_hal_get_ns_entry_point();
#ifdef CONFIG_TFM_PSA_API_THREAD_CALL
SPM_THREAD_CONTEXT = &p_pt->ctx_ctrl;