Skip to content

Commit d732a51

Browse files
thughesdanieldegrasse
authored andcommitted
tests: kernel: gen_isr_table: Don't use IRQ1 if already used
IRQ 1 is used by the LiteX timer, so we can't use it for the test: gen_isr_tables.py: error: multiple registrations at table_index 1 for irq 1 (0x1) Existing section ['.irq.WEST_TOPDIR/zephyr/tests/kernel/gen_isr_table/src/main.c.0'], new section .irq.WEST_TOPDIR/zephyr/drivers/timer/litex_timer.c.0 Has IRQ_CONNECT or IRQ_DIRECT_CONNECT accidentally been invoked on the same irq multiple times? Issue #92194 Signed-off-by: Tom Hughes <[email protected]>
1 parent 14f1c56 commit d732a51

File tree

1 file changed

+8
-0
lines changed
  • tests/kernel/gen_isr_table/src

1 file changed

+8
-0
lines changed

tests/kernel/gen_isr_table/src/main.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ extern const uintptr_t _irq_vector_table[];
1919
#endif
2020

2121
#if defined(CONFIG_RISCV)
22+
23+
/* litex_timer0 (drivers/timer/litex_timer.c) uses IRQ 1, so the test can't use it. */
24+
#if defined(CONFIG_LITEX_TIMER)
25+
#define IRQ1_USED
26+
#endif
27+
2228
#if defined(CONFIG_NRFX_CLIC)
2329

2430
#if defined(CONFIG_SOC_SERIES_NRF54LX) && defined(CONFIG_RISCV_CORE_NORDIC_VPR)
@@ -47,8 +53,10 @@ extern const uintptr_t _irq_vector_table[];
4753
#define TRIG_CHECK_SIZE 19
4854
#else
4955

56+
#if !defined(IRQ1_USED)
5057
/* RISC-V has very few IRQ lines which can be triggered from software */
5158
#define ISR3_OFFSET 1
59+
#endif
5260

5361
/* Since we have so few lines we have to share the same line for two different
5462
* tests

0 commit comments

Comments
 (0)