0001
0002
0003
0004
0005
0006 #ifndef __ARCH_UM_MMU_H
0007 #define __ARCH_UM_MMU_H
0008
0009 #include <mm_id.h>
0010 #include <asm/mm_context.h>
0011
0012 typedef struct mm_context {
0013 struct mm_id id;
0014 struct uml_arch_mm_context arch;
0015 struct page *stub_pages[2];
0016 } mm_context_t;
0017
0018 extern void __switch_mm(struct mm_id * mm_idp);
0019
0020
0021 extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
0022 extern void free_ldt(struct mm_context *mm);
0023
0024 #endif