App: Add no TZ context API support
Don't call tfm_nspm_register_client_id API if the NS OS doesn't support
TZ context management API.
Also update os_migration_guide_armv8m.md.
Change-Id: I44079f0414252ea4822f7623148ea351bb685d5f
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 0707737..367847c 100644
--- a/app/tfm_integ_test.c
+++ b/app/tfm_integ_test.c
@@ -219,7 +219,9 @@
osThreadState_t thread_pri_state;
uint32_t idx;
+#ifdef TFM_NS_CLIENT_IDENTIFICATION
tfm_nspm_register_client_id();
+#endif /* TFM_NS_CLIENT_IDENTIFICATION */
thread_id_pri = *((osThreadId_t *)argument);
@@ -252,7 +254,9 @@
__attribute__((noreturn))
static void pri_task(void *argument)
{
+#ifdef TFM_NS_CLIENT_IDENTIFICATION
tfm_nspm_register_client_id();
+#endif /* TFM_NS_CLIENT_IDENTIFICATION */
/* go to sleep */
osDelay(100U);
@@ -280,7 +284,9 @@
struct tfm_ns_lock_options ns_lock_opt_pri =
{.use_ns_lock=true, .timeout=osWaitForever};
+#ifdef TFM_NS_CLIENT_IDENTIFICATION
tfm_nspm_register_client_id();
+#endif /* TFM_NS_CLIENT_IDENTIFICATION */
test_type = *((enum test_type *)argument);