arm64: Promote KERNEL_START/KERNEL_END definitions to a header file
authorJames Morse <james.morse@arm.com>
Wed, 27 Apr 2016 16:47:09 +0000 (17:47 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 28 Apr 2016 11:05:46 +0000 (12:05 +0100)
KERNEL_START and KERNEL_END are useful outside head.S, move them to a
header file.

Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/memory.h
arch/arm64/kernel/head.S

index f412f502ccdda9868ccc8122d51aba97ca99453f..72a3025bb5830f013ed93b2e831261eef6e641aa 100644 (file)
@@ -87,6 +87,9 @@
 
 #define TASK_UNMAPPED_BASE     (PAGE_ALIGN(TASK_SIZE / 4))
 
+#define KERNEL_START      _text
+#define KERNEL_END        _end
+
 /*
  * The size of the KASAN shadow region. This should be 1/8th of the
  * size of the entire kernel virtual address space.
index 0674384cfc74b6daab8911f4551eaa0526bbc18d..564c340cef032980552ddb5f41d32af810efc39f 100644 (file)
@@ -52,9 +52,6 @@
 #error TEXT_OFFSET must be less than 2MB
 #endif
 
-#define KERNEL_START   _text
-#define KERNEL_END     _end
-
 /*
  * Kernel startup entry point.
  * ---------------------------