riscv: Allow NOMMU kernels to run in S-mode
authorSamuel Holland <samuel.holland@sifive.com>
Tue, 27 Feb 2024 00:34:49 +0000 (16:34 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 9 Apr 2024 18:39:40 +0000 (11:39 -0700)
commitf862bbf4cdca696ef3073c5cf3d340b778a3e42a
tree98e5cffae506ff16655d69ff3d9774697fc244cf
parent9c4319d697448e738b1e20d187d9391164c84a89
riscv: Allow NOMMU kernels to run in S-mode

For ease of testing, it is convenient to run NOMMU kernels in supervisor
mode. The only required change is to offset the kernel load address,
since the beginning of RAM is usually reserved for M-mode firmware.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240227003630.3634533-5-samuel.holland@sifive.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig