xref: /openbmc/linux/arch/arm/include/asm/idmap.h (revision ca5999fd)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
28903826dSWill Deacon #ifndef __ASM_IDMAP_H
38903826dSWill Deacon #define __ASM_IDMAP_H
48903826dSWill Deacon 
58903826dSWill Deacon #include <linux/compiler.h>
6ca5999fdSMike Rapoport #include <linux/pgtable.h>
78903826dSWill Deacon 
88903826dSWill Deacon /* Tag a function as requiring to be executed via an identity mapping. */
98903826dSWill Deacon #define __idmap __section(.idmap.text) noinline notrace
108903826dSWill Deacon 
118903826dSWill Deacon extern pgd_t *idmap_pgd;
128903826dSWill Deacon 
138903826dSWill Deacon void setup_mm_for_reboot(void);
148903826dSWill Deacon 
158903826dSWill Deacon #endif	/* __ASM_IDMAP_H */
16