armv8m/arm_hardfault:add arm_gen_nonsecurefault information

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1 2023-06-01 13:39:24 +08:00 committed by Xiang Xiao
parent 043d5922e4
commit 842adf888f
1 changed files with 7 additions and 0 deletions

View File

@ -181,6 +181,13 @@ int arm_hardfault(int irq, void *context, void *arg)
hfalert("\tDebug event\n");
}
#ifdef CONFIG_DEBUG_HARDFAULT_ALERT
if (arm_gen_nonsecurefault(irq, context))
{
return OK;
}
#endif
up_irq_save();
PANIC_WITH_REGS("panic", context);
return OK;