18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_IDMAP_H 38c2ecf20Sopenharmony_ci#define __ASM_IDMAP_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/compiler.h> 68c2ecf20Sopenharmony_ci#include <linux/pgtable.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* Tag a function as requiring to be executed via an identity mapping. */ 98c2ecf20Sopenharmony_ci#define __idmap __section(".idmap.text") noinline notrace 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciextern pgd_t *idmap_pgd; 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_civoid setup_mm_for_reboot(void); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#endif /* __ASM_IDMAP_H */ 16