diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h index f412f502ccdda9868ccc8122d51aba97ca99453f..72a3025bb5830f013ed93b2e831261eef6e641aa 100644 --- a/arch/arm64/include/asm/memory.h +++ b/arch/arm64/include/asm/memory.h @@ -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. diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 0674384cfc74b6daab8911f4551eaa0526bbc18d..564c340cef032980552ddb5f41d32af810efc39f 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -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. * ---------------------------