xref: /openbmc/linux/arch/arm/include/asm/idmap.h (revision 8903826d0cd99aed9267e792d38284cf3092042b)
1*8903826dSWill Deacon #ifndef __ASM_IDMAP_H
2*8903826dSWill Deacon #define __ASM_IDMAP_H
3*8903826dSWill Deacon 
4*8903826dSWill Deacon #include <linux/compiler.h>
5*8903826dSWill Deacon #include <asm/pgtable.h>
6*8903826dSWill Deacon 
7*8903826dSWill Deacon /* Tag a function as requiring to be executed via an identity mapping. */
8*8903826dSWill Deacon #define __idmap __section(.idmap.text) noinline notrace
9*8903826dSWill Deacon 
10*8903826dSWill Deacon extern pgd_t *idmap_pgd;
11*8903826dSWill Deacon 
12*8903826dSWill Deacon void identity_mapping_add(pgd_t *, unsigned long, unsigned long);
13*8903826dSWill Deacon void identity_mapping_del(pgd_t *, unsigned long, unsigned long);
14*8903826dSWill Deacon 
15*8903826dSWill Deacon void setup_mm_for_reboot(void);
16*8903826dSWill Deacon 
17*8903826dSWill Deacon #endif	/* __ASM_IDMAP_H */
18