summaryrefslogtreecommitdiff
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorClément Léger <cleger@rivosinc.com>2023-10-04 18:14:02 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2023-11-01 18:34:56 +0300
commitbc38f61313d316d74c16ce7287d6dba2f42502c9 (patch)
treef859ddc331fce5ff86bbc4f512c4ffb490b935e0 /arch/riscv/Kconfig
parent7c586a555a48a952f64d883d2f20402fb61d9164 (diff)
downloadlinux-bc38f61313d316d74c16ce7287d6dba2f42502c9.tar.xz
riscv: add support for sysctl unaligned_enabled control
This sysctl tuning option allows the user to disable misaligned access handling globally on the system. This will also be used by misaligned detection code to temporarily disable misaligned access handling. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Björn Töpel <bjorn@rivosinc.com> Link: https://lore.kernel.org/r/20231004151405.521596-6-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/Kconfig')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 6e167358a897..1313f83bb0cb 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -638,6 +638,7 @@ config THREAD_SIZE_ORDER
config RISCV_MISALIGNED
bool "Support misaligned load/store traps for kernel and userspace"
+ select SYSCTL_ARCH_UNALIGN_ALLOW
default y
help
Say Y here if you want the kernel to embed support for misaligned