Skip to content

Commit 015c3c3

Browse files
lyctwpalmer-dabbelt
authored andcommitted
riscv: Introduce NAPOT field to PTDUMP
This patch introduces the NAPOT field to PTDUMP, allowing it to display the letter "N" for pages that have the 63rd bit set. Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230921025022.3989723-4-peterlin@andestech.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 0713ff3 commit 015c3c3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

arch/riscv/mm/ptdump.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ struct prot_bits {
136136
static const struct prot_bits pte_bits[] = {
137137
{
138138
#ifdef CONFIG_64BIT
139+
.mask = _PAGE_NAPOT,
140+
.set = "N",
141+
.clear = ".",
142+
}, {
139143
.mask = _PAGE_MTMASK_SVPBMT,
140144
.set = "MT(%s)",
141145
.clear = " .. ",

0 commit comments

Comments
 (0)