Skip to content

soc: riscv: disable local isr location #92227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions soc/lowrisc/opentitan/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
config RISCV_SOC_INTERRUPT_INIT
default y

config ISR_TABLES_LOCAL_DECLARATION_SUPPORTED
default n

config 2ND_LVL_ISR_TBL_OFFSET
default 32

Expand Down
3 changes: 3 additions & 0 deletions soc/sensry/ganymed/sy1xx/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ config INCLUDE_RESET_VECTOR
config GEN_IRQ_VECTOR_TABLE
default y

config ISR_TABLES_LOCAL_DECLARATION_SUPPORTED
default n

config RISCV_GENERIC_TOOLCHAIN
default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"

Expand Down
3 changes: 3 additions & 0 deletions soc/sifive/sifive_freedom/fe300/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
config RISCV_SOC_INTERRUPT_INIT
default y

config ISR_TABLES_LOCAL_DECLARATION_SUPPORTED
default n

config 2ND_LVL_ISR_TBL_OFFSET
default 12

Expand Down
4 changes: 4 additions & 0 deletions tests/kernel/gen_isr_table/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ extern const uintptr_t _irq_vector_table[];
#error "Target not supported"
#endif

#elif defined(CONFIG_VEXRISCV_LITEX_IRQ) && defined(CONFIG_LITEX_TIMER)
#define ISR3_OFFSET 10
#define TRIG_CHECK_SIZE 11

#elif defined(CONFIG_RISCV_HAS_CLIC)
#define ISR1_OFFSET 3
#define ISR3_OFFSET 17
Expand Down