diff options
author | 2023-03-27 16:27:49 -0700 | |
---|---|---|
committer | 2023-03-27 16:27:49 -0700 | |
commit | e97be4fbc1b16f3e02ee004c12967e360cb06d52 (patch) | |
tree | 101d546fb1075940748a09687e4566e4ab78ec6b /arch | |
parent | Merge patch series "riscv: Add GENERIC_ENTRY support" (diff) | |
parent | riscv: configs: Add nommu PHONY defconfig for RV32 (diff) | |
download | linux-e97be4fbc1b16f3e02ee004c12967e360cb06d52.tar.gz linux-e97be4fbc1b16f3e02ee004c12967e360cb06d52.tar.bz2 linux-e97be4fbc1b16f3e02ee004c12967e360cb06d52.zip |
Merge patch series "Add RISC-V 32 NOMMU support"
Jesse Taube <mr.bossman075@gmail.com> says:
This patch-set aims to add NOMMU support to RV32.
Many people want to build simple emulators or HDL
models of RISC-V this patch makes it possible to
run linux on them.
Yimin Gu is the original author of this set.
Submitted here:
https://lists.buildroot.org/pipermail/buildroot/2022-November/656134.html
Though Jesse T rewrote the Dconf.
* b4-shazam-merge:
riscv: configs: Add nommu PHONY defconfig for RV32
riscv: Kconfig: Allow RV32 to build with no MMU
Link: https://lore.kernel.org/r/20230301002657.352637-1-Mr.Bossman075@gmail.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/riscv/Kconfig | 5 | ||||
-rw-r--r-- | arch/riscv/Makefile | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index d7252ced4ae6..d7c467670be8 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -178,8 +178,8 @@ config MMU config PAGE_OFFSET hex - default 0xC0000000 if 32BIT - default 0x80000000 if 64BIT && !MMU + default 0xC0000000 if 32BIT && MMU + default 0x80000000 if !MMU default 0xff60000000000000 if 64BIT config KASAN_SHADOW_OFFSET @@ -280,7 +280,6 @@ config ARCH_RV32I select GENERIC_LIB_ASHRDI3 select GENERIC_LIB_LSHRDI3 select GENERIC_LIB_UCMPDI2 - select MMU config ARCH_RV64I bool "RV64I" diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index 6203c3378922..1b276f62f22b 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -174,3 +174,7 @@ rv64_randconfig: PHONY += rv32_defconfig rv32_defconfig: $(Q)$(MAKE) -f $(srctree)/Makefile defconfig 32-bit.config + +PHONY += rv32_nommu_virt_defconfig +rv32_nommu_virt_defconfig: + $(Q)$(MAKE) -f $(srctree)/Makefile nommu_virt_defconfig 32-bit.config |