blob: a7cb380c0b5c07fa7238e5816e923b62cd4402ca [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
4 */
5
6#ifndef __ARCH_UM_MMU_H
7#define __ARCH_UM_MMU_H
8
9#include <mm_id.h>
10#include <asm/mm_context.h>
11
12typedef struct mm_context {
13 struct mm_id id;
14 struct uml_arch_mm_context arch;
15 struct page *stub_pages[2];
16} mm_context_t;
17
18/* Avoid tangled inclusion with asm/ldt.h */
19extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
20extern void free_ldt(struct mm_context *mm);
21
22#endif