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)
commit08375198b01001c0e43bdd580104b16b019a3754
tree42fcb4cd3d1660d4fcdc2c44a6ce8d5982e220e8
parentb4a0d8b37797663b0e523c102dbb3e4b712a720c
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