sched/irq: add a check for the interrupt stack in irq_dispatch

After irq_dispatch finished, the interrupt stack will be checked to
determine whether overflow occurs.
The relevant configuration reuses the configuration of stack overflow
detection during context switching.

Signed-off-by: guoshengyuan1 <guoshengyuan1@xiaomi.com>
This commit is contained in:
guoshengyuan1
2025-09-29 19:12:18 +08:00
committed by Xiang Xiao
parent a0ffe03ec5
commit ca7608c2ac
13 changed files with 78 additions and 32 deletions
+1 -1
View File
@@ -2565,7 +2565,7 @@ void irq_dispatch(int irq, FAR void *context);
struct tcb_s;
size_t up_check_tcbstack(FAR struct tcb_s *tcb, size_t check_size);
#if defined(CONFIG_ARCH_INTERRUPTSTACK) && CONFIG_ARCH_INTERRUPTSTACK > 3
size_t up_check_intstack(int cpu);
size_t up_check_intstack(int cpu, size_t check_size);
#endif
#endif