Skip to content

Commit

Permalink
riscv: s64ilp32: Add PHYS_ADDR_T_64BIT for MMU_SV39
Browse files Browse the repository at this point in the history
MMU_SV39 in s64ilp32 could support the whole bits of PPN, which is
beyond 32 bits. So, enable PHYS_ADDR_T_64BIT to use this hardware
feature.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
  • Loading branch information
guoren83 committed Feb 26, 2024
1 parent 2e4192f commit 38cb416
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ config ARCH_RV64ILP32
depends on NONPORTABLE
select ARCH_SUPPORTS_INT128 if !$(cc-option,$(m64-flag) -D__SIZEOF_INT128__=0)
select 32BIT
select PHYS_ADDR_T_64BIT if !MMU_SV32
select MMU
select VDSO64ILP32
select ARCH_HAS_64ILP32_KERNEL
Expand Down
4 changes: 4 additions & 0 deletions arch/riscv/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
#define XIP_OFFSET 0
#endif

#ifndef CONFIG_MMU_SV32
#define MAX_POSSIBLE_PHYSMEM_BITS 56
#endif

#ifndef __ASSEMBLY__

#include <asm/page.h>
Expand Down

0 comments on commit 38cb416

Please sign in to comment.