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/interface/include/tfm_nspm_api.h b/interface/include/tfm_nspm_api.h
new file mode 100644
index 0000000..5f03845
--- /dev/null
+++ b/interface/include/tfm_nspm_api.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2018, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __TFM_NSPM_API_H__
+#define __TFM_NSPM_API_H__
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * \brief Reports the client ID of this task to TF-M
+ *
+ * \return Returns 1 if the client ID was successfully reported 0 otherwise
+ */
+uint32_t tfm_nspm_register_client_id(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TFM_NSPM_API_H__ */