Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* 
0003  * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
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 /* Avoid tangled inclusion with asm/ldt.h */
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