arch: arm: Use returned reason from secure fault handle function

Use the returned reason from the secure fault handle function.
I see no reason why this was ignored, and it is used in the hardfault
handler.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2023-11-15 16:24:25 +01:00 committed by Fabio Baltieri
parent 64153a7910
commit 4217920d7c

View file

@ -863,7 +863,7 @@ static uint32_t fault_handle(z_arch_esf_t *esf, int fault, bool *recoverable)
break; break;
#if defined(CONFIG_ARM_SECURE_FIRMWARE) #if defined(CONFIG_ARM_SECURE_FIRMWARE)
case 7: case 7:
secure_fault(esf); reason = secure_fault(esf);
break; break;
#endif /* CONFIG_ARM_SECURE_FIRMWARE */ #endif /* CONFIG_ARM_SECURE_FIRMWARE */
case 12: case 12: