Skip to content

Commit e0fac2a

Browse files
committed
soc: riscv: disable local isr location
build for some risc-v SoCs is now failing due to #91018. Use this workaround to fix the issue and keep ISR location feature as not-supported for now. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 3370e52 commit e0fac2a

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

soc/lowrisc/opentitan/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
99
config RISCV_SOC_INTERRUPT_INIT
1010
default y
1111

12+
config ISR_TABLES_LOCAL_DECLARATION_SUPPORTED
13+
default n
14+
1215
config 2ND_LVL_ISR_TBL_OFFSET
1316
default 32
1417

soc/sensry/ganymed/sy1xx/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ config INCLUDE_RESET_VECTOR
1818
config GEN_IRQ_VECTOR_TABLE
1919
default y
2020

21+
config ISR_TABLES_LOCAL_DECLARATION_SUPPORTED
22+
default n
23+
2124
config RISCV_GENERIC_TOOLCHAIN
2225
default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"
2326

soc/sifive/sifive_freedom/fe300/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
1010
config RISCV_SOC_INTERRUPT_INIT
1111
default y
1212

13+
config ISR_TABLES_LOCAL_DECLARATION_SUPPORTED
14+
default n
15+
1316
config 2ND_LVL_ISR_TBL_OFFSET
1417
default 12
1518

tests/kernel/gen_isr_table/src/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ extern const uintptr_t _irq_vector_table[];
4040
#error "Target not supported"
4141
#endif
4242

43+
#elif defined(CONFIG_VEXRISCV_LITEX_IRQ) && defined(CONFIG_LITEX_TIMER)
44+
#define ISR3_OFFSET 10
45+
#define TRIG_CHECK_SIZE 11
46+
4347
#elif defined(CONFIG_RISCV_HAS_CLIC)
4448
#define ISR1_OFFSET 3
4549
#define ISR3_OFFSET 17

0 commit comments

Comments
 (0)