App: Add SVC call for registering client ID
Add an SVC call that calls the NS client ID registering veneer.
Also call that veneer at the beginning of the app threads' main
function.
Change-Id: I06c46529967ed66ef4f63ee6ba96513c0815b64d
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
diff --git a/app/tfm_integ_test.c b/app/tfm_integ_test.c
index e7b518a..0707737 100644
--- a/app/tfm_integ_test.c
+++ b/app/tfm_integ_test.c
@@ -13,6 +13,7 @@
#include "cmsis.h"
#include "tfm_api.h"
#include "cmsis_os2.h"
+#include "tfm_nspm_api.h"
#include "tfm_integ_test.h"
#include "test/framework/test_framework_integ_test.h"
@@ -218,6 +219,8 @@
osThreadState_t thread_pri_state;
uint32_t idx;
+ tfm_nspm_register_client_id();
+
thread_id_pri = *((osThreadId_t *)argument);
/* go to sleep */
@@ -249,6 +252,8 @@
__attribute__((noreturn))
static void pri_task(void *argument)
{
+ tfm_nspm_register_client_id();
+
/* go to sleep */
osDelay(100U);
@@ -275,6 +280,8 @@
struct tfm_ns_lock_options ns_lock_opt_pri =
{.use_ns_lock=true, .timeout=osWaitForever};
+ tfm_nspm_register_client_id();
+
test_type = *((enum test_type *)argument);
if (test_type == TEST_TYPE_1) {