armv8m/arm_hardfault:add arm_gen_nonsecurefault information
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
parent
043d5922e4
commit
842adf888f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue