blob: da705448590f2fea52f4f44c913ac1bad54bb123 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Al Viro4dc706c2011-08-18 20:09:09 +01002 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 * Licensed under the GPL
4 */
5
Al Viro4dc706c2011-08-18 20:09:09 +01006#ifndef __ARCH_UM_MMU_H
7#define __ARCH_UM_MMU_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Al Viro37185b32012-10-08 03:27:32 +01009#include <mm_id.h>
Al Virob3ee5712011-08-18 20:10:49 +010010#include <asm/mm_context.h>
Al Viro4dc706c2011-08-18 20:09:09 +010011
12typedef struct mm_context {
13 struct mm_id id;
Al Virob3ee5712011-08-18 20:10:49 +010014 struct uml_arch_mm_context arch;
Al Viroea6fb412012-02-23 01:33:19 -050015 struct page *stub_pages[2];
Al Viro4dc706c2011-08-18 20:09:09 +010016} mm_context_t;
17
18extern void __switch_mm(struct mm_id * mm_idp);
19
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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24#endif