diff options
author | Clément Léger <cleger@rivosinc.com> | 2023-10-04 17:14:02 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-11-01 08:34:56 -0700 |
commit | bc38f61313d316d74c16ce7287d6dba2f42502c9 (patch) | |
tree | f859ddc331fce5ff86bbc4f512c4ffb490b935e0 /arch/riscv/Kconfig | |
parent | 7c586a555a48a952f64d883d2f20402fb61d9164 (diff) | |
download | lwn-bc38f61313d316d74c16ce7287d6dba2f42502c9.tar.gz lwn-bc38f61313d316d74c16ce7287d6dba2f42502c9.zip |
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/Kconfig | 1 |
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 |