]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Determine the vmalloc/vmemmap space at build time based on VA_BITS
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 16 Jul 2014 16:42:43 +0000 (17:42 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 23 Jul 2014 14:28:05 +0000 (15:28 +0100)
commitc7953147a29e779bfc1c1ac6db2a666b79623c6c
tree42fcb4cd3d1660d4fcdc2c44a6ce8d5982e220e8
parent959059d5bd726d60a4d103d75095ec4cae4591e4
arm64: Determine the vmalloc/vmemmap space at build time based on VA_BITS

Rather than guessing what the maximum vmmemap space should be, this
patch allows the calculation based on the VA_BITS and sizeof(struct
page). The vmalloc space extends to the beginning of the vmemmap space.

Since the virtual kernel memory layout now depends on the build
configuration, this patch removes the detailed description in
Documentation/arm64/memory.txt in favour of information printed during
kernel booting.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Jungseok Lee <jungseoklee85@gmail.com>
Documentation/arm64/memory.txt
arch/arm64/include/asm/pgtable.h
arch/arm64/mm/init.c