mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
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:
committed by
Xiang Xiao
parent
a0ffe03ec5
commit
ca7608c2ac
@@ -157,4 +157,9 @@ void irq_dispatch(int irq, FAR void *context)
|
||||
kmm_checkcorruption();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_STACKCHECK_SOFTWARE) && CONFIG_STACKCHECK_MARGIN > 0
|
||||
DEBUGASSERT(up_check_intstack(this_cpu(),
|
||||
CONFIG_STACKCHECK_MARGIN) == 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user