From 842adf888f98084d98d792d6ca11f7eb2601f163 Mon Sep 17 00:00:00 2001 From: chenrun1 Date: Thu, 1 Jun 2023 13:39:24 +0800 Subject: [PATCH] armv8m/arm_hardfault:add arm_gen_nonsecurefault information Signed-off-by: chenrun1 --- arch/arm/src/armv8-m/arm_hardfault.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/src/armv8-m/arm_hardfault.c b/arch/arm/src/armv8-m/arm_hardfault.c index 5a9542dca7..56bc5e1aa7 100644 --- a/arch/arm/src/armv8-m/arm_hardfault.c +++ b/arch/arm/src/armv8-m/arm_hardfault.c @@ -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;