aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2016-06-01 07:07:17 -0400
committerWill Deacon <will.deacon@arm.com>2016-06-03 05:16:21 -0400
commita13e3a5b54e59ffdeba738ea6cb57a7856425206 (patch)
treef2a4eed18a2580deb7ace94a91e3808b65d5380d
parent5988a363edb9eb9f31486ceb2cd10e8b45f05dda (diff)
arm64: update stale PAGE_OFFSET comment
Commit ab893fb9f1b17f02 ("arm64: introduce KIMAGE_VADDR as the virtual base of the kernel region") logically split KIMAGE_VADDR from PAGE_OFFSET, and since commit f9040773b7bbbd9e ("arm64: move kernel image to base of vmalloc area") the two have been distinct values. Unfortunately, neither commit updated the comment above these definitions, which now erroneously states that PAGE_OFFSET is the start of the kernel image rather than the start of the linear mapping. This patch fixes said comment, and introduces an explanation of KIMAGE_VADDR. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--arch/arm64/include/asm/memory.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h
index 72a3025bb583..31b73227b41f 100644
--- a/arch/arm64/include/asm/memory.h
+++ b/arch/arm64/include/asm/memory.h
@@ -55,8 +55,9 @@
55#define VMEMMAP_SIZE (UL(1) << (VA_BITS - PAGE_SHIFT - 1 + STRUCT_PAGE_MAX_SHIFT)) 55#define VMEMMAP_SIZE (UL(1) << (VA_BITS - PAGE_SHIFT - 1 + STRUCT_PAGE_MAX_SHIFT))
56 56
57/* 57/*
58 * PAGE_OFFSET - the virtual address of the start of the kernel image (top 58 * PAGE_OFFSET - the virtual address of the start of the linear map (top
59 * (VA_BITS - 1)) 59 * (VA_BITS - 1))
60 * KIMAGE_VADDR - the virtual address of the start of the kernel image
60 * VA_BITS - the maximum number of bits for virtual addresses. 61 * VA_BITS - the maximum number of bits for virtual addresses.
61 * VA_START - the first kernel virtual address. 62 * VA_START - the first kernel virtual address.
62 * TASK_SIZE - the maximum size of a user space task. 63 * TASK_SIZE - the maximum size of a user space task.