mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
arm/stm32h7: Allow PendSV with high-priority interrupts.
Some checks are pending
Build Documentation / build-html (push) Waiting to run
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
Some checks are pending
Build Documentation / build-html (push) Waiting to run
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
With CONFIG_ARCH_HIPRI_INTERRUPT enabled, arm_doirq() dispatches PendSV for deferred processing. The STM32H7 debug handler unconditionally panics on that valid interrupt, preventing normal operation with debug enabled. Guard the panic with CONFIG_ARCH_HIPRI_INTERRUPT, allowing the common interrupt path to finish signal delivery and context switching. Preserve the diagnostic when high-priority interrupts are disabled. Assisted-by: Codex:GPT-6 Signed-off-by: jsanchez-2g <jsanchez@2g-eng.com>
This commit is contained in:
parent
a57a5f656b
commit
6e41066215
1 changed files with 2 additions and 0 deletions
|
|
@ -189,9 +189,11 @@ static int stm32_nmi(int irq, void *context, void *arg)
|
|||
|
||||
static int stm32_pendsv(int irq, void *context, void *arg)
|
||||
{
|
||||
#ifndef CONFIG_ARCH_HIPRI_INTERRUPT
|
||||
up_irq_save();
|
||||
_err("PANIC!!! PendSV received\n");
|
||||
PANIC();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue