]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW
authorPalmer Dabbelt <palmer@rivosinc.com>
Fri, 19 Nov 2021 16:44:03 +0000 (08:44 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Jan 2022 04:06:29 +0000 (20:06 -0800)
commit4868730985ce3c055acddb87dc8c72c1e80fb1c7
treecc467c1e12a35b484244f592e7754d1bc57c4a18
parentaae0bdd3dc9e43b75d8cda10c1fc90c276da0767
RISC-V: MAXPHYSMEM_2GB doesn't depend on CMODEL_MEDLOW

For non-relocatable kernels we need to be able to link the kernel at
approximately PAGE_OFFSET, thus requiring medany (as medlow requires the
code to be linked within 2GiB of 0).  The inverse doesn't apply, though:
since medany code can be linked anywhere it's fine to link it close to
0, so we can support the smaller memory config.

Fixes: d9a88a1be21e ("RISC-V: Define MAXPHYSMEM_1GB only for RV32")
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig