| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | /* 
 | 
					
						
							| 
									
										
										
										
											2011-08-18 20:09:09 +01:00
										 |  |  |  * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  |  * Licensed under the GPL | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-18 20:09:09 +01:00
										 |  |  | #ifndef __ARCH_UM_MMU_H
 | 
					
						
							|  |  |  | #define __ARCH_UM_MMU_H
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-10-08 03:27:32 +01:00
										 |  |  | #include <mm_id.h>
 | 
					
						
							| 
									
										
										
										
											2011-08-18 20:10:49 +01:00
										 |  |  | #include <asm/mm_context.h>
 | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-18 20:09:09 +01:00
										 |  |  | typedef struct mm_context { | 
					
						
							|  |  |  | 	struct mm_id id; | 
					
						
							| 
									
										
										
										
											2011-08-18 20:10:49 +01:00
										 |  |  | 	struct uml_arch_mm_context arch; | 
					
						
							| 
									
										
										
										
											2012-02-23 01:33:19 -05:00
										 |  |  | 	struct page *stub_pages[2]; | 
					
						
							| 
									
										
										
										
											2011-08-18 20:09:09 +01:00
										 |  |  | } mm_context_t; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern void __switch_mm(struct mm_id * mm_idp); | 
					
						
							| 
									
										
										
										
											2005-04-16 15:20:36 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-08-18 20:09:09 +01:00
										 |  |  | /* 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
 |