linux/arch/x86/include/asm/mmu.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_MMU_H
#define _ASM_X86_MMU_H

#include <linux/spinlock.h>
#include <linux/rwsem.h>
#include <linux/mutex.h>
#include <linux/atomic.h>
#include <linux/bits.h>

/* Uprobes on this MM assume 32-bit code */
#define MM_CONTEXT_UPROBE_IA32
/* vsyscall page is accessible on this MM */
#define MM_CONTEXT_HAS_VSYSCALL
/* Do not allow changing LAM mode */
#define MM_CONTEXT_LOCK_LAM
/* Allow LAM and SVA coexisting */
#define MM_CONTEXT_FORCE_TAGGED_SVA

/*
 * x86 has arch-specific MMU state beyond what lives in mm_struct.
 */
mm_context_t;

#define INIT_MM_CONTEXT(mm)

void leave_mm(void);
#define leave_mm

#endif /* _ASM_X86_MMU_H */