1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef __ASM_IDMAP_H 3*4882a593Smuzhiyun #define __ASM_IDMAP_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include <linux/compiler.h> 6*4882a593Smuzhiyun #include <linux/pgtable.h> 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun /* Tag a function as requiring to be executed via an identity mapping. */ 9*4882a593Smuzhiyun #define __idmap __section(".idmap.text") noinline notrace 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun extern pgd_t *idmap_pgd; 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun void setup_mm_for_reboot(void); 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun #endif /* __ASM_IDMAP_H */ 16