]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/arm64/include/asm/memory.h
arm64: mm: Modify calculation of VMEMMAP_SIZE
authorSteve Capper <steve.capper@arm.com>
Wed, 7 Aug 2019 15:55:21 +0000 (16:55 +0100)
committerWill Deacon <will@kernel.org>
Fri, 9 Aug 2019 10:17:26 +0000 (11:17 +0100)
commitce3aaed87344c83c77135f80e7b76e1da9c92ee6
treee6d129a82c0262b52d14d15e30a6fa5dd74a2f12
parentc8b6d2ccf9b10ce872cdea037f9685804440bb7e
arm64: mm: Modify calculation of VMEMMAP_SIZE

In a later patch we will need to have a slightly larger VMEMMAP region
to accommodate boot time selection between 48/52-bit kernel VAs.

This patch modifies the formula for computing VMEMMAP_SIZE to depend
explicitly on the PAGE_OFFSET and start of kernel addressable memory.
(This allows for a slightly larger direct linear map in future).

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/include/asm/memory.h