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)
committerAlex Shi <alex.shi@linaro.org>
Thu, 10 Nov 2016 07:54:48 +0000 (15:54 +0800)
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>
(cherry picked from commit 28c7258330ee4ce701a4da7af96d6605d1a0b3bd)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/include/asm/memory.h
arch/arm64/kernel/head.S

index 853953cd1f0813fd562b68b7cdddd95582f1e392..5773a6629f106e58039e2cd44834b2df608b3152 100644 (file)
@@ -70,6 +70,9 @@
 
 #define TASK_UNMAPPED_BASE     (PAGE_ALIGN(TASK_SIZE / 4))
 
+#define KERNEL_START      _text
+#define KERNEL_END        _end
+
 /*
  * Physical vs virtual RAM address space conversion.  These are
  * private definitions which should NOT be used outside memory.h
index 977913e6f8a97fbdb5179cdfafbf23d1bae8b207..79cf6059ea503eb5f2c5d45a7a7eb63be1cb226d 100644 (file)
@@ -48,9 +48,6 @@
 #error TEXT_OFFSET must be less than 2MB
 #endif
 
-#define KERNEL_START   _text
-#define KERNEL_END     _end
-
 /*
  * Kernel startup entry point.
  * ---------------------------