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

#ifndef __ARCH_UM_MMU_H
#define __ARCH_UM_MMU_H

#include "uml-config.h"
10 11
#include "mm_id.h"
#include "asm/ldt.h"
L
Linus Torvalds 已提交
12

13 14 15
typedef struct mm_context {
	struct mm_id id;
	struct uml_ldt ldt;
L
Linus Torvalds 已提交
16 17
} mm_context_t;

18 19 20 21 22 23
extern void __switch_mm(struct mm_id * mm_idp);

/* 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);

L
Linus Torvalds 已提交
24
#endif