Skip to content

Commit

Permalink
arm64: Promote KERNEL_START/KERNEL_END definitions to a header file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morse authored and Will Deacon committed Apr 28, 2016
1 parent 8122645 commit 28c7258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions arch/arm64/include/asm/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 0 additions & 3 deletions arch/arm64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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.
* ---------------------------
Expand Down

0 comments on commit 28c7258

Please sign in to comment.