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:
parent
64153a7910
commit
4217920d7c
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue