App: Add NS interface code moved from TF-M
Add NS interface code moved from TF-M. It includes OS wrapper headers
and RTX specific implementation of OS wrapper.
Signed-off-by: David Hu <david.hu@arm.com>
Change-Id: I0b88535eaa720b52d2090d5ed041987093df9d75
diff --git a/app/main_ns.c b/app/main_ns.c
index b3a027e..aaaead9 100644
--- a/app/main_ns.c
+++ b/app/main_ns.c
@@ -111,6 +111,8 @@
}
}
}
+#else
+extern uint32_t tfm_ns_interface_init(void);
#endif
/**
@@ -156,10 +158,10 @@
#ifdef TFM_MULTI_CORE_TOPOLOGY
tfm_ns_multi_core_boot();
-#endif
-
+#else
/* Initialize the TFM NS interface */
tfm_ns_interface_init();
+#endif
#ifdef TFM_MULTI_CORE_NS_OS_MAILBOX_THREAD
(void) osThreadNew(mailbox_thread_func, NULL, &mailbox_thread_attr);