hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/arm64/include/asm/sections.h
....@@ -1,17 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2016 ARM Limited
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- *
13
- * You should have received a copy of the GNU General Public License
14
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
154 */
165 #ifndef __ASM_SECTIONS_H
176 #define __ASM_SECTIONS_H
....@@ -19,15 +8,23 @@
198 #include <asm-generic/sections.h>
209
2110 extern char __alt_instructions[], __alt_instructions_end[];
22
-extern char __exception_text_start[], __exception_text_end[];
2311 extern char __hibernate_exit_text_start[], __hibernate_exit_text_end[];
2412 extern char __hyp_idmap_text_start[], __hyp_idmap_text_end[];
2513 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[];
2617 extern char __idmap_text_start[], __idmap_text_end[];
2718 extern char __initdata_begin[], __initdata_end[];
2819 extern char __inittext_begin[], __inittext_end[];
20
+extern char __exittext_begin[], __exittext_end[];
2921 extern char __irqentry_text_start[], __irqentry_text_end[];
3022 extern char __mmuoff_data_start[], __mmuoff_data_end[];
3123 extern char __entry_tramp_text_start[], __entry_tramp_text_end[];
3224
25
+static inline size_t entry_tramp_text_size(void)
26
+{
27
+ return __entry_tramp_text_end - __entry_tramp_text_start;
28
+}
29
+
3330 #endif /* __ASM_SECTIONS_H */