[RFC PATCH v2 19/21] riscv: Kconfig: Adjust mmap rnd bits for 64K Page

Xu Lu
2024-12-05T10:45:11Z

arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 592eb5766029..9dfe95a12890 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -253,6 +253,7 @@ config ARCH_MMAP_RND_COMPAT_BITS_MIN
# max bits determined by the following formula:
# VA_BITS - PAGE_SHIFT - 3
config ARCH_MMAP_RND_BITS_MAX
+ default 20 if 64BIT && RISCV_64K_PAGES # SV39 based
default 24 if 64BIT # SV39 based
default 17