xref: /openbmc/linux/arch/arm64/include/asm/sections.h (revision bacf743e)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2016 ARM Limited
4  */
5 #ifndef __ASM_SECTIONS_H
6 #define __ASM_SECTIONS_H
7 
8 #include <asm-generic/sections.h>
9 
10 extern char __alt_instructions[], __alt_instructions_end[];
11 extern char __hibernate_exit_text_start[], __hibernate_exit_text_end[];
12 extern char __hyp_idmap_text_start[], __hyp_idmap_text_end[];
13 extern char __hyp_text_start[], __hyp_text_end[];
14 extern char __hyp_rodata_start[], __hyp_rodata_end[];
15 extern char __hyp_reloc_begin[], __hyp_reloc_end[];
16 extern char __hyp_bss_start[], __hyp_bss_end[];
17 extern char __idmap_text_start[], __idmap_text_end[];
18 extern char __initdata_begin[], __initdata_end[];
19 extern char __inittext_begin[], __inittext_end[];
20 extern char __exittext_begin[], __exittext_end[];
21 extern char __irqentry_text_start[], __irqentry_text_end[];
22 extern char __mmuoff_data_start[], __mmuoff_data_end[];
23 extern char __entry_tramp_text_start[], __entry_tramp_text_end[];
24 extern char __relocate_new_kernel_start[], __relocate_new_kernel_end[];
25 
26 static inline size_t entry_tramp_text_size(void)
27 {
28 	return __entry_tramp_text_end - __entry_tramp_text_start;
29 }
30 
31 #endif /* __ASM_SECTIONS_H */
32