Core: implement TZ context handling if used by NS RTOS

Change-Id: Iaecd473d90d4b51b0174aa5d7695d59fa13fec51
Signed-off-by: Miklos Balint <miklos.balint@arm.com>
diff --git a/secure_fw/spm/spm_api.c b/secure_fw/spm/spm_api.c
index ee08e8c..7b96b11 100644
--- a/secure_fw/spm/spm_api.c
+++ b/secure_fw/spm/spm_api.c
@@ -66,6 +66,9 @@
     return SPM_INVALID_PARTITION_IDX;
 }
 
+/* FixMe: this should be in a header */
+extern void tfm_nspm_configure_clients(void);
+
 enum spm_err_t tfm_spm_db_init(void)
 {
     struct spm_partition_desc_t *part_ptr;
@@ -103,6 +106,7 @@
 #endif
 
     part_ptr->runtime_data.partition_state = SPM_PARTITION_STATE_UNINIT;
+    tfm_nspm_configure_clients();
     ++g_spm_partition_db.partition_count;
 
     /* For the TF-M core environment itself */