We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 590258b commit f5bd450Copy full SHA for f5bd450
arch/arm/core/cortex_m/isr_wrapper.c
@@ -68,9 +68,12 @@ void _isr_wrapper(void)
68
#if defined(CONFIG_ARM_CUSTOM_INTERRUPT_CONTROLLER)
69
int32_t irq_number = z_soc_irq_get_active();
70
#else
71
- /* _sw_isr_table does not map the exceptions, only the interrupts. */
72
int32_t irq_number = __get_IPSR();
73
#endif
+ /* _sw_isr_table does not map the core system exceptions,
74
+ * which take first 16 interrupt numbers, only the external
75
+ * interrupts.
76
+ */
77
irq_number -= 16;
78
79
struct _isr_table_entry *entry = &_sw_isr_table[irq_number];
0 commit comments