Skip to content

Commit 28252e0

Browse files
AlexGhitipalmer-dabbelt
authored andcommitted
riscv: Remove 32b kernel mapping from page table dump
The 32b kernel mapping lies in the linear mapping, there is no point in printing its address in page table dump, so remove this leftover that comes from moving the kernel mapping outside the linear mapping for 64b kernel. Fixes: e9efb21 ("riscv: Prepare ptdump for vm layout dynamic addresses") Signed-off-by: Alexandre Ghiti <[email protected]> Reviewed-by: Anup Patel <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 883fcb8 commit 28252e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/riscv/mm/ptdump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ enum address_markers_idx {
7676
PAGE_OFFSET_NR,
7777
#ifdef CONFIG_64BIT
7878
MODULES_MAPPING_NR,
79-
#endif
8079
KERNEL_MAPPING_NR,
80+
#endif
8181
END_OF_SPACE_NR
8282
};
8383

@@ -99,8 +99,8 @@ static struct addr_marker address_markers[] = {
9999
{0, "Linear mapping"},
100100
#ifdef CONFIG_64BIT
101101
{0, "Modules mapping"},
102-
#endif
103102
{0, "Kernel mapping (kernel, BPF)"},
103+
#endif
104104
{-1, NULL},
105105
};
106106

@@ -379,8 +379,8 @@ static int __init ptdump_init(void)
379379
address_markers[PAGE_OFFSET_NR].start_address = PAGE_OFFSET;
380380
#ifdef CONFIG_64BIT
381381
address_markers[MODULES_MAPPING_NR].start_address = MODULES_VADDR;
382-
#endif
383382
address_markers[KERNEL_MAPPING_NR].start_address = kernel_virt_addr;
383+
#endif
384384

385385
kernel_ptd_info.base_addr = KERN_VIRT_START;
386386

0 commit comments

Comments
 (0)