1 #ifndef __ASM_X86_MMU_CONTEXT_H
2 #define __ASM_X86_MMU_CONTEXT_H
5 #include <asm/atomic.h>
6 #include <asm/pgalloc.h>
7 #include <asm/tlbflush.h>
8 #include <asm/paravirt.h>
9 #ifndef CONFIG_PARAVIRT
10 #include <asm-generic/mm_hooks.h>
12 static inline void paravirt_activate_mm(struct mm_struct
*prev
,
13 struct mm_struct
*next
)
16 #endif /* !CONFIG_PARAVIRT */
19 * Used for LDT copy/destruction.
21 int init_new_context(struct task_struct
*tsk
, struct mm_struct
*mm
);
22 void destroy_context(struct mm_struct
*mm
);
25 # include "mmu_context_32.h"
27 # include "mmu_context_64.h"
30 #define activate_mm(prev, next) \
32 paravirt_activate_mm((prev), (next)); \
33 switch_mm((prev), (next), NULL); \
37 #endif /* __ASM_X86_MMU_CONTEXT_H */