Skip to content

Commit fc0c769

Browse files
VincentZWCpalmer-dabbelt
authored andcommitted
riscv: enable the Kconfig prompt of STRICT_KERNEL_RWX
Due to lack of hardware breakpoint support, the kernel option CONFIG_STRICT_KERNEL_RWX should be disabled when using KGDB. However, CONFIG_STRICT_KERNEL_RWX is always enabled now. Therefore, select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT to enable CONFIG_STRICT_KERNEL_RWX by default, and then select ARCH_OPTIONAL_KERNEL_RWX to enable the Kconfig prompt of CONFIG_STRICT_KERNEL_RWX so that users can turn it off. Signed-off-by: Vincent Chen <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 8c080d3 commit fc0c769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ config RISCV
2323
select ARCH_HAS_SET_DIRECT_MAP
2424
select ARCH_HAS_SET_MEMORY
2525
select ARCH_HAS_STRICT_KERNEL_RWX if MMU
26+
select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
27+
select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT
2628
select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
2729
select ARCH_WANT_FRAME_POINTERS
2830
select ARCH_WANT_HUGE_PMD_SHARE if 64BIT

0 commit comments

Comments
 (0)