Skip to content

Commit 798e3c3

Browse files
author
Oren Cohen
committed
Call tfm_panic for SPM_PANIC
1 parent faf5fcf commit 798e3c3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/TARGET_PSA/inc/psa/service.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616
*/
1717

1818
#if defined(TARGET_TFM)
19+
1920
#include "interface/include/psa_service.h"
20-
#define SPM_PANIC(format, ...) \
21-
{ \
22-
while(1){}; \
23-
}
21+
#define SPM_PANIC(format, ...) tfm_panic()
22+
2423
#elif defined(TARGET_MBED_SPM)
24+
2525
#include "TARGET_MBED_SPM/psa_defs.h"
2626
#include "TARGET_MBED_SPM/COMPONENT_SPE/spm_server.h"
2727
#include "TARGET_MBED_SPM/COMPONENT_SPE/spm_panic.h"
28+
2829
#else
30+
2931
#error "Compiling psa service header on non-secure target is not allowed"
32+
3033
#endif

0 commit comments

Comments
 (0)