162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2016 ARM Limited
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci#ifndef __ASM_SECTIONS_H
662306a36Sopenharmony_ci#define __ASM_SECTIONS_H
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#include <asm-generic/sections.h>
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciextern char __alt_instructions[], __alt_instructions_end[];
1162306a36Sopenharmony_ciextern char __hibernate_exit_text_start[], __hibernate_exit_text_end[];
1262306a36Sopenharmony_ciextern char __hyp_idmap_text_start[], __hyp_idmap_text_end[];
1362306a36Sopenharmony_ciextern char __hyp_text_start[], __hyp_text_end[];
1462306a36Sopenharmony_ciextern char __hyp_rodata_start[], __hyp_rodata_end[];
1562306a36Sopenharmony_ciextern char __hyp_reloc_begin[], __hyp_reloc_end[];
1662306a36Sopenharmony_ciextern char __hyp_bss_start[], __hyp_bss_end[];
1762306a36Sopenharmony_ciextern char __idmap_text_start[], __idmap_text_end[];
1862306a36Sopenharmony_ciextern char __initdata_begin[], __initdata_end[];
1962306a36Sopenharmony_ciextern char __inittext_begin[], __inittext_end[];
2062306a36Sopenharmony_ciextern char __exittext_begin[], __exittext_end[];
2162306a36Sopenharmony_ciextern char __irqentry_text_start[], __irqentry_text_end[];
2262306a36Sopenharmony_ciextern char __mmuoff_data_start[], __mmuoff_data_end[];
2362306a36Sopenharmony_ciextern char __entry_tramp_text_start[], __entry_tramp_text_end[];
2462306a36Sopenharmony_ciextern char __relocate_new_kernel_start[], __relocate_new_kernel_end[];
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_cistatic inline size_t entry_tramp_text_size(void)
2762306a36Sopenharmony_ci{
2862306a36Sopenharmony_ci	return __entry_tramp_text_end - __entry_tramp_text_start;
2962306a36Sopenharmony_ci}
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci#endif /* __ASM_SECTIONS_H */
32