arm64: introduce KIMAGE_VADDR as the virtual base of the kernel region
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 16 Feb 2016 12:52:36 +0000 (13:52 +0100)
committerAlex Shi <alex.shi@linaro.org>
Thu, 17 Nov 2016 01:49:36 +0000 (09:49 +0800)
commit8163c584020b655bcfa65abb77ef7a932fff80eb
tree7e05ead9a8d6677002f70ad3679ced0044edcca5
parent602decea81c1d7e89cb633acb0e34fd74cd8a122
arm64: introduce KIMAGE_VADDR as the virtual base of the kernel region

This introduces the preprocessor symbol KIMAGE_VADDR which will serve as
the symbolic virtual base of the kernel region, i.e., the kernel's virtual
offset will be KIMAGE_VADDR + TEXT_OFFSET. For now, we define it as being
equal to PAGE_OFFSET, but in the future, it will be moved below it once
we move the kernel virtual mapping out of the linear mapping.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit ab893fb9f1b17f02139bce547bb4b69e96b9ae16)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/memory.h
arch/arm64/kernel/head.S
arch/arm64/kernel/vmlinux.lds.S