arm64: mmu: add the entry trampolines start/end section markers into sections.h
authorJames Morse <james.morse@arm.com>
Mon, 8 Jan 2018 15:38:17 +0000 (15:38 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 14 Jan 2018 18:49:50 +0000 (18:49 +0000)
SDEI needs to calculate an offset in the trampoline page too. Move
the extern char[] to sections.h.

This patch just moves code around.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/sections.h
arch/arm64/mm/mmu.c

index 941267caa39c2b2389ec56af670342ae431c4a2d..caab039d63055ad7180b6a029cd80d8c572c92eb 100644 (file)
@@ -28,5 +28,6 @@ extern char __initdata_begin[], __initdata_end[];
 extern char __inittext_begin[], __inittext_end[];
 extern char __irqentry_text_start[], __irqentry_text_end[];
 extern char __mmuoff_data_start[], __mmuoff_data_end[];
+extern char __entry_tramp_text_start[], __entry_tramp_text_end[];
 
 #endif /* __ASM_SECTIONS_H */
index 4071602031ed1d6a2159b7d694817621ad919d5c..62d7abb2f71092d2e8265d5be8e27871a6ee719b 100644 (file)
@@ -529,8 +529,6 @@ early_param("rodata", parse_rodata);
 #ifdef CONFIG_UNMAP_KERNEL_AT_EL0
 static int __init map_entry_trampoline(void)
 {
-       extern char __entry_tramp_text_start[];
-
        pgprot_t prot = rodata_enabled ? PAGE_KERNEL_ROX : PAGE_KERNEL_EXEC;
        phys_addr_t pa_start = __pa_symbol(__entry_tramp_text_start);