SPM: Rename SVC numbers to make more sense
- 'TFM_SVC_HANDLER_MODE' works for SPM initialization.
- 'TFM_SVC_NUMBER_DIVIDER' is actually the end number for
thread mode supervisor call.
- Define a new name to indicate handler mode SVC number start.
Change-Id: I754b3cb62c892e42b439dc12fe2b3efb0ee72709
Signed-off-by: Ken Liu <Ken.Liu@arm.com>
diff --git a/secure_fw/spm/include/interface/svc_num.h b/secure_fw/spm/include/interface/svc_num.h
index 1ffa32e..23b9e04 100644
--- a/secure_fw/spm/include/interface/svc_num.h
+++ b/secure_fw/spm/include/interface/svc_num.h
@@ -40,11 +40,14 @@
/* TF-M specific, starts from 0x40 */
#define TFM_SVC_SPM_REQUEST (0x40)
#define TFM_SVC_GET_BOOT_DATA (0x41)
-#define TFM_SVC_HANDLER_MODE (0x42)
+#define TFM_SVC_SPM_INIT (0x42)
+#define TFM_SVC_THREAD_NUMBER_END (0x7F)
#if (TFM_SPM_LOG_LEVEL > TFM_SPM_LOG_LEVEL_SILENCE)
-#define TFM_SVC_OUTPUT_UNPRIV_STRING (0x7F)
+#define TFM_SVC_OUTPUT_UNPRIV_STRING (TFM_SVC_THREAD_NUMBER_END)
#endif
-#define TFM_SVC_NUMBER_DIVIDER (0x7F)
+
+#define TFM_SVC_HANDLER_NUMBER_START (0x80)
+
/********************* SVC for interrupt handling *****************************/
#endif /* __SVC_NUM_H__ */