Skip to content

Commit b5e2c50

Browse files
regymmpalmer-dabbelt
authored andcommitted
riscv: Kconfig: Allow RV32 to build with no MMU
Some RISC-V 32bit cores do not have an MMU, and the kernel should be able to build for them. This patch enables the RV32 to be built with no MMU support. Signed-off-by: Yimin Gu <ustcymgu@gmail.com> CC: Jesse Taube <Mr.Bossman075@gmail.com> Tested-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230301002657.352637-3-Mr.Bossman075@gmail.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent fe15c26 commit b5e2c50

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

arch/riscv/Kconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ config MMU
177177

178178
config PAGE_OFFSET
179179
hex
180-
default 0xC0000000 if 32BIT
181-
default 0x80000000 if 64BIT && !MMU
180+
default 0xC0000000 if 32BIT && MMU
181+
default 0x80000000 if !MMU
182182
default 0xff60000000000000 if 64BIT
183183

184184
config KASAN_SHADOW_OFFSET
@@ -279,7 +279,6 @@ config ARCH_RV32I
279279
select GENERIC_LIB_ASHRDI3
280280
select GENERIC_LIB_LSHRDI3
281281
select GENERIC_LIB_UCMPDI2
282-
select MMU
283282

284283
config ARCH_RV64I
285284
bool "RV64I"

0 commit comments

Comments
 (0)