1# Copyright (c) 2024 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4CPU_PATH := $(dt_nodelabel_path,cpu)
5CPU_ID := $(dt_node_reg_addr_int,$(CPU_PATH))
6
7config RV_BOOT_HART
8	default $(CPU_ID)
9
10config RISCV_MCAUSE_EXCEPTION_MASK
11	default 0xFFF
12
13config RISCV_RESERVED_IRQ_ISR_TABLES_OFFSET
14	default 16
15
16config GEN_IRQ_VECTOR_TABLE
17	default y
18
19choice IRQ_VECTOR_TABLE_TYPE
20	default IRQ_VECTOR_TABLE_JUMP_BY_ADDRESS
21endchoice
22
23config ARCH_SW_ISR_TABLE_ALIGN
24	default 64
25
26config RISCV_ALWAYS_SWITCH_THROUGH_ECALL
27	default y if MULTITHREADING
28