Skip to content

Commit 4a9b27c

Browse files
lstnlRafal-Nordic
authored andcommitted
[nrf fromlist] arch: riscv: added helper config to include isr wrapper
Added helper Kcoinfig option USE_ISR_WRAPPER which can be used to include isr_wrapper even if GEN_SW_ISR_TABLE is not enabled. This is needed to enable configurations where only IRQ vector table is used with multithreading (only direct isr used). This change is backward compatibible with previous config. Upstream PR #: 94655 Signed-off-by: Łukasz Stępnicki <[email protected]> Signed-off-by: Rafal Dyla <[email protected]>
1 parent 6997770 commit 4a9b27c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/riscv/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ config RISCV_GENERIC_TOOLCHAIN
262262
Allow SOCs that have custom extended riscv ISA to still
263263
compile with generic riscv32 toolchain.
264264

265+
config USE_ISR_WRAPPER
266+
bool "Use isr_wrapper to handle interrupt and/or exception/fault"
267+
default y if GEN_SW_ISR_TABLE
268+
default y if MULTITHREADING
269+
help
270+
This is helper config to be able to use exception handling
271+
when GEN_SW_ISR_TABLE is not used but multithreading is, which
272+
needs exception handling and thread entry/switch functions.
273+
265274
config GEN_ISR_TABLES
266275
default y
267276

0 commit comments

Comments
 (0)