arm64: dump: De-constify VA_START and KASAN_SHADOW_START
authorSteve Capper <steve.capper@arm.com>
Wed, 7 Aug 2019 15:55:16 +0000 (16:55 +0100)
committerWill Deacon <will@kernel.org>
Fri, 9 Aug 2019 10:17:16 +0000 (11:17 +0100)
commit99426e5e8c9f11b9de65e7c1200868e8a9ceaa47
tree5f9ef0c9fee87dd575826e74722fc52326ac2140
parent6bd1d0be0e97936d15cdacc71f5c232fbf71293e
arm64: dump: De-constify VA_START and KASAN_SHADOW_START

The kernel page table dumper assumes that the placement of VA regions is
constant and determined at compile time. As we are about to introduce
variable VA logic, we need to be able to determine certain regions at
boot time.

Specifically the VA_START and KASAN_SHADOW_START will depend on whether
or not the system is booted with 52-bit kernel VAs.

This patch adds logic to the kernel page table dumper s.t. these regions
can be computed at boot time.

Signed-off-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/dump.c