diff options
author | Samuel Holland <samuel.holland@sifive.com> | 2024-02-26 16:34:49 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-04-09 11:39:40 -0700 |
commit | f862bbf4cdca696ef3073c5cf3d340b778a3e42a (patch) | |
tree | 98e5cffae506ff16655d69ff3d9774697fc244cf /arch/riscv/mm/init.c | |
parent | 9c4319d697448e738b1e20d187d9391164c84a89 (diff) | |
download | linux-stable-f862bbf4cdca696ef3073c5cf3d340b778a3e42a.tar.gz linux-stable-f862bbf4cdca696ef3073c5cf3d340b778a3e42a.tar.bz2 linux-stable-f862bbf4cdca696ef3073c5cf3d340b778a3e42a.zip |
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>
Diffstat (limited to 'arch/riscv/mm/init.c')
0 files changed, 0 insertions, 0 deletions