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 <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Tested-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 0713ff3 commit 015c3c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)