Skip to content

Commit 5a13294

Browse files
James MorseAlex Shi
authored andcommitted
arm64: Promote KERNEL_START/KERNEL_END definitions to a header file
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>
1 parent c193591 commit 5a13294

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

arch/arm64/include/asm/memory.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070

7171
#define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 4))
7272

73+
#define KERNEL_START _text
74+
#define KERNEL_END _end
75+
7376
/*
7477
* Physical vs virtual RAM address space conversion. These are
7578
* private definitions which should NOT be used outside memory.h

arch/arm64/kernel/head.S

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@
4848
#error TEXT_OFFSET must be less than 2MB
4949
#endif
5050

51-
#define KERNEL_START _text
52-
#define KERNEL_END _end
53-
5451
/*
5552
* Kernel startup entry point.
5653
* ---------------------------

0 commit comments

Comments
 (0)