RISC-V: Provide pgtable_l5_enabled on rv32
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 30 Aug 2023 04:39:19 +0000 (21:39 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Nov 2023 02:15:50 +0000 (19:15 -0700)
commit10128f8b1663a8bce27df051c750d116bb8cd737
tree6c85347e95bbe72ac88d1a29fa148d6b05bc1db1
parent60c46877e9cd4f7fd13fa844258f60cca4eb3e34
RISC-V: Provide pgtable_l5_enabled on rv32

A few of the other page table level helpers are defined on rv32, but not
pgtable_l5_enabled.  This adds the definition as a constant and converts
pgtable_l4_enabled to a constant as well.

Link: https://lore.kernel.org/r/20230830044129.11481-2-palmer@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/pgtable-32.h
arch/riscv/include/asm/pgtable.h
arch/riscv/mm/init.c