b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 __exception_text_start[], __exception_text_end[]; |
| 12 | extern char __hibernate_exit_text_start[], __hibernate_exit_text_end[]; |
| 13 | extern char __hyp_idmap_text_start[], __hyp_idmap_text_end[]; |
| 14 | extern char __hyp_text_start[], __hyp_text_end[]; |
| 15 | extern char __idmap_text_start[], __idmap_text_end[]; |
| 16 | extern char __initdata_begin[], __initdata_end[]; |
| 17 | extern char __inittext_begin[], __inittext_end[]; |
| 18 | extern char __exittext_begin[], __exittext_end[]; |
| 19 | extern char __irqentry_text_start[], __irqentry_text_end[]; |
| 20 | extern char __mmuoff_data_start[], __mmuoff_data_end[]; |
| 21 | extern char __entry_tramp_text_start[], __entry_tramp_text_end[]; |
| 22 | |
| 23 | static inline size_t entry_tramp_text_size(void) |
| 24 | { |
| 25 | return __entry_tramp_text_end - __entry_tramp_text_start; |
| 26 | } |
| 27 | |
| 28 | #endif /* __ASM_SECTIONS_H */ |