mmu.h 558 字节
Newer Older
L
Linus Torvalds 已提交
1
/* 
2
 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
L
Linus Torvalds 已提交
3 4 5
 * Licensed under the GPL
 */

6 7
#ifndef __ARCH_UM_MMU_H
#define __ARCH_UM_MMU_H
L
Linus Torvalds 已提交
8

9
#include <mm_id.h>
10
#include <asm/mm_context.h>
L
Linus Torvalds 已提交
11

12 13
typedef struct mm_context {
	struct mm_id id;
14
	struct uml_arch_mm_context arch;
15
	struct page *stub_pages[2];
16 17 18
} mm_context_t;

extern void __switch_mm(struct mm_id * mm_idp);
L
Linus Torvalds 已提交
19

20 21 22 23 24
/* Avoid tangled inclusion with asm/ldt.h */
extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
extern void free_ldt(struct mm_context *mm);

#endif