Skip to content

Commit cf76972

Browse files
joerchancarlescufi
authored andcommitted
[nrf toup] SPM: Call tfm_core_panic instead of halt for access violation
Call tfm_core_panic instead of halt in the access violation handler. This means that the common switch for halt or reset for panic can be used to decide as a single configuration for multiple types of faults. Signed-off-by: Joakim Andersson <[email protected]>
1 parent 6faad34 commit cf76972

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

secure_fw/spm/cmsis_func/tfm_core_svcalls_func.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ uint32_t tfm_core_svc_handler(uint32_t *msp, uint32_t *psp, uint32_t exc_return)
110110

111111
void tfm_access_violation_handler(void)
112112
{
113-
tfm_hal_system_halt();
113+
tfm_core_panic();
114114
}

secure_fw/spm/cmsis_psa/tfm_core_svcalls_ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,5 +263,5 @@ __attribute__ ((naked)) void tfm_core_handler_mode(void)
263263

264264
void tfm_access_violation_handler(void)
265265
{
266-
tfm_hal_system_halt();
266+
tfm_core_panic();
267267
}

0 commit comments

Comments
 (0)