| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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/>. |
|---|
| 15 | 4 | */ |
|---|
| 16 | 5 | #ifndef __ASM_SECTIONS_H |
|---|
| 17 | 6 | #define __ASM_SECTIONS_H |
|---|
| .. | .. |
|---|
| 19 | 8 | #include <asm-generic/sections.h> |
|---|
| 20 | 9 | |
|---|
| 21 | 10 | extern char __alt_instructions[], __alt_instructions_end[]; |
|---|
| 22 | | -extern char __exception_text_start[], __exception_text_end[]; |
|---|
| 23 | 11 | extern char __hibernate_exit_text_start[], __hibernate_exit_text_end[]; |
|---|
| 24 | 12 | extern char __hyp_idmap_text_start[], __hyp_idmap_text_end[]; |
|---|
| 25 | 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[]; |
|---|
| 26 | 17 | extern char __idmap_text_start[], __idmap_text_end[]; |
|---|
| 27 | 18 | extern char __initdata_begin[], __initdata_end[]; |
|---|
| 28 | 19 | extern char __inittext_begin[], __inittext_end[]; |
|---|
| 20 | +extern char __exittext_begin[], __exittext_end[]; |
|---|
| 29 | 21 | extern char __irqentry_text_start[], __irqentry_text_end[]; |
|---|
| 30 | 22 | extern char __mmuoff_data_start[], __mmuoff_data_end[]; |
|---|
| 31 | 23 | extern char __entry_tramp_text_start[], __entry_tramp_text_end[]; |
|---|
| 32 | 24 | |
|---|
| 25 | +static inline size_t entry_tramp_text_size(void) |
|---|
| 26 | +{ |
|---|
| 27 | + return __entry_tramp_text_end - __entry_tramp_text_start; |
|---|
| 28 | +} |
|---|
| 29 | + |
|---|
| 33 | 30 | #endif /* __ASM_SECTIONS_H */ |
|---|