riscv: Prepare ptdump for vm layout dynamic addresses
authorAlexandre Ghiti <alex@ghiti.fr>
Sun, 11 Apr 2021 16:41:46 +0000 (12:41 -0400)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Mon, 26 Apr 2021 15:25:06 +0000 (08:25 -0700)
commit0df68ce4c26a48115a9e8d45e24f18d964a10050
treeb322f346a1a13894a408683682206b7e136d9a2d
parent2a433cf8f3cdb26d9e4f137db5d3b31aed6a2ca7
riscv: Prepare ptdump for vm layout dynamic addresses

This is a preparatory patch for sv48 support that will introduce
dynamic PAGE_OFFSET.

Dynamic PAGE_OFFSET implies that all zones (vmalloc, vmemmap, fixaddr...)
whose addresses depend on PAGE_OFFSET become dynamic and can't be used
to statically initialize the array used by ptdump to identify the
different zones of the vm layout.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/ptdump.c