zephyr/arch/riscv
Yong Cong Sin e6dd68ec89 arch: riscv: introduce CONFIG_RISCV_GP_PURPOSE choice
Introduce `CONFIG_RISCV_GP_PURPOSE` choice to make sure that only
one of `CONFIG_RISCV_GP` or `CONFIG_RISCV_CURRENT_VIA_GP` can be
enabled, instead of relying of dependencies.

To do that, introduce a new
`CONFIG_RISCV_SOC_HAS_GP_RELATIVE_ADDRESSING` that can be selected
by SoC when it implemented global pointer (GP) initialization for
relative addressing in its linker.

`CONFIG_RISCV_GP` will be the default choice when
`CONFIG_RISCV_SOC_HAS_GP_RELATIVE_ADDRESSING=y`

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-11-28 12:51:09 +01:00
..
core arch: riscv: support CONFIG_USERSPACE in CONFIG_RISCV_CURRENT_VIA_GP 2024-11-28 12:51:09 +01:00
include init: support per-core init hook 2024-11-16 14:04:25 -05:00
CMakeLists.txt riscv: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
Kconfig arch: riscv: introduce CONFIG_RISCV_GP_PURPOSE choice 2024-11-28 12:51:09 +01:00
Kconfig.isa riscv: Introduce BitManip extensions 2022-08-29 16:57:18 +02:00