Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / arch / um / include / asm / mmu.h
CommitLineData
1da177e4 1/*
4dc706c2 2 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
1da177e4
LT
3 * Licensed under the GPL
4 */
5
4dc706c2
AV
6#ifndef __ARCH_UM_MMU_H
7#define __ARCH_UM_MMU_H
1da177e4 8
37185b33 9#include <mm_id.h>
b3ee571e 10#include <asm/mm_context.h>
1da177e4 11
4dc706c2
AV
12typedef struct mm_context {
13 struct mm_id id;
b3ee571e 14 struct uml_arch_mm_context arch;
ea6fb417 15 struct page *stub_pages[2];
4dc706c2
AV
16} mm_context_t;
17
18extern void __switch_mm(struct mm_id * mm_idp);
1da177e4 19
4dc706c2
AV
20/* Avoid tangled inclusion with asm/ldt.h */
21extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
22extern void free_ldt(struct mm_context *mm);
23
24#endif