xref: /openbmc/linux/arch/arm/include/asm/idmap.h (revision 8903826d)
18903826dSWill Deacon #ifndef __ASM_IDMAP_H
28903826dSWill Deacon #define __ASM_IDMAP_H
38903826dSWill Deacon 
48903826dSWill Deacon #include <linux/compiler.h>
58903826dSWill Deacon #include <asm/pgtable.h>
68903826dSWill Deacon 
78903826dSWill Deacon /* Tag a function as requiring to be executed via an identity mapping. */
88903826dSWill Deacon #define __idmap __section(.idmap.text) noinline notrace
98903826dSWill Deacon 
108903826dSWill Deacon extern pgd_t *idmap_pgd;
118903826dSWill Deacon 
128903826dSWill Deacon void identity_mapping_add(pgd_t *, unsigned long, unsigned long);
138903826dSWill Deacon void identity_mapping_del(pgd_t *, unsigned long, unsigned long);
148903826dSWill Deacon 
158903826dSWill Deacon void setup_mm_for_reboot(void);
168903826dSWill Deacon 
178903826dSWill Deacon #endif	/* __ASM_IDMAP_H */
18