diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 23:09:09 +0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 17:15:14 +0400 |
commit | 4dc706c2f292b2c28016a27f400af84a62ec4a63 (patch) | |
tree | c304dfc9cf140e379040b7a19df28dd8c7586368 /arch/um/include/asm/mmu.h | |
parent | 548fd1e8dba90bea674f5969d73498959d83924b (diff) | |
download | linux-4dc706c2f292b2c28016a27f400af84a62ec4a63.tar.xz |
um: take um_mmu.h to asm/mmu.h, clean asm/mmu_context.h a bit
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include/asm/mmu.h')
-rw-r--r-- | arch/um/include/asm/mmu.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/arch/um/include/asm/mmu.h b/arch/um/include/asm/mmu.h index cf259de51531..b1a7e47d1027 100644 --- a/arch/um/include/asm/mmu.h +++ b/arch/um/include/asm/mmu.h @@ -1,12 +1,24 @@ /* - * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) + * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Licensed under the GPL */ -#ifndef __MMU_H -#define __MMU_H +#ifndef __ARCH_UM_MMU_H +#define __ARCH_UM_MMU_H -#include "um_mmu.h" +#include "mm_id.h" +#include "ldt.h" -#endif +typedef struct mm_context { + struct mm_id id; + struct uml_ldt ldt; + struct page **stub_pages; +} mm_context_t; + +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); + +#endif |