Skip to content

Commit aa27342

Browse files
damien-lemoalpalmer-dabbelt
authored andcommitted
riscv: Force flat memory model with no-mmu
Compilation errors trigger if ARCH_SPARSEMEM_ENABLE is enabled for a nommu kernel. Since the sparsemem model does not make sense anyway for the nommu case, do not allow selecting this option to always use the flatmem model. Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent aad15bc commit aa27342

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ config ARCH_FLATMEM_ENABLE
121121

122122
config ARCH_SPARSEMEM_ENABLE
123123
def_bool y
124+
depends on MMU
124125
select SPARSEMEM_VMEMMAP_ENABLE
125126

126127
config ARCH_SELECT_MEMORY_MODEL

0 commit comments

Comments
 (0)