blob: baebb67b35124dc6f6e4668482d3f28a552b8db0 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_IDMAP_H
3#define __ASM_IDMAP_H
4
5#include <linux/compiler.h>
Olivier Deprez157378f2022-04-04 15:47:50 +02006#include <linux/pgtable.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007
8/* Tag a function as requiring to be executed via an identity mapping. */
Olivier Deprez157378f2022-04-04 15:47:50 +02009#define __idmap __section(".idmap.text") noinline notrace
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000010
11extern pgd_t *idmap_pgd;
12
13void setup_mm_for_reboot(void);
14
15#endif /* __ASM_IDMAP_H */