aboutsummaryrefslogtreecommitdiff
path: root/secure_fw
diff options
context:
space:
mode:
authorMingyang Sun <mingyang.sun@arm.com>2021-05-20 14:39:55 +0800
committerKen Liu <ken.liu@arm.com>2021-05-21 06:01:52 +0200
commitc66e947ce2c660aa84bb2a4b1833986a10abbc34 (patch)
treec8c30eece79aa4eee110419f7f6a6b570a690a08 /secure_fw
parent34060489be415689493dc9b7a8ff5d7bb6013f9b (diff)
downloadtrusted-firmware-m-c66e947ce2c660aa84bb2a4b1833986a10abbc34.tar.gz
SPM: Make SP log support library model
Add SVC branch for SP log in library model. Change-Id: I24e42d0af523fd3664bc53a1358f01dce9268d3c Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Diffstat (limited to 'secure_fw')
-rw-r--r--secure_fw/spm/cmsis_func/tfm_core_svcalls_func.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/secure_fw/spm/cmsis_func/tfm_core_svcalls_func.c b/secure_fw/spm/cmsis_func/tfm_core_svcalls_func.c
index 193ab2727..f6407e50f 100644
--- a/secure_fw/spm/cmsis_func/tfm_core_svcalls_func.c
+++ b/secure_fw/spm/cmsis_func/tfm_core_svcalls_func.c
@@ -93,6 +93,11 @@ uint32_t tfm_core_svc_handler(uint32_t *msp, uint32_t *psp, uint32_t exc_return)
case TFM_SVC_GET_BOOT_DATA:
tfm_core_get_boot_data_handler(svc_args);
break;
+#if (TFM_SPM_LOG_LEVEL > TFM_SPM_LOG_LEVEL_SILENCE)
+ case TFM_SVC_OUTPUT_UNPRIV_STRING:
+ svc_args[0] = tfm_hal_output_spm_log((const char *)svc_args[0],
+ svc_args[1]);
+#endif
default:
#ifdef PLATFORM_SVC_HANDLERS
svc_args[0] = platform_svc_handlers(svc_num, svc_args, exc_return);