Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Al Viro | 4dc706c | 2011-08-18 20:09:09 +0100 | [diff] [blame] | 2 | * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
Al Viro | 4dc706c | 2011-08-18 20:09:09 +0100 | [diff] [blame] | 6 | #ifndef __ARCH_UM_MMU_H |
| 7 | #define __ARCH_UM_MMU_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Al Viro | 37185b3 | 2012-10-08 03:27:32 +0100 | [diff] [blame] | 9 | #include <mm_id.h> |
Al Viro | b3ee571 | 2011-08-18 20:10:49 +0100 | [diff] [blame] | 10 | #include <asm/mm_context.h> |
Al Viro | 4dc706c | 2011-08-18 20:09:09 +0100 | [diff] [blame] | 11 | |
| 12 | typedef struct mm_context { |
| 13 | struct mm_id id; |
Al Viro | b3ee571 | 2011-08-18 20:10:49 +0100 | [diff] [blame] | 14 | struct uml_arch_mm_context arch; |
Al Viro | ea6fb41 | 2012-02-23 01:33:19 -0500 | [diff] [blame] | 15 | struct page *stub_pages[2]; |
Al Viro | 4dc706c | 2011-08-18 20:09:09 +0100 | [diff] [blame] | 16 | } mm_context_t; |
| 17 | |
| 18 | extern void __switch_mm(struct mm_id * mm_idp); |
| 19 | |
| 20 | /* Avoid tangled inclusion with asm/ldt.h */ |
| 21 | extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm); |
| 22 | extern void free_ldt(struct mm_context *mm); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
| 24 | #endif |