2008-06-18 11:08:48 -04:00
|
|
|
#ifndef ASM_X86__MMU_CONTEXT_H
|
|
|
|
#define ASM_X86__MMU_CONTEXT_H
|
2008-06-25 00:19:07 -04:00
|
|
|
|
|
|
|
#include <asm/desc.h>
|
|
|
|
#include <asm/atomic.h>
|
|
|
|
#include <asm/pgalloc.h>
|
|
|
|
#include <asm/tlbflush.h>
|
|
|
|
#include <asm/paravirt.h>
|
|
|
|
#ifndef CONFIG_PARAVIRT
|
|
|
|
#include <asm-generic/mm_hooks.h>
|
|
|
|
|
|
|
|
static inline void paravirt_activate_mm(struct mm_struct *prev,
|
|
|
|
struct mm_struct *next)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif /* !CONFIG_PARAVIRT */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Used for LDT copy/destruction.
|
|
|
|
*/
|
|
|
|
int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
|
|
|
|
void destroy_context(struct mm_struct *mm);
|
|
|
|
|
2007-10-11 05:20:03 -04:00
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
# include "mmu_context_32.h"
|
|
|
|
#else
|
|
|
|
# include "mmu_context_64.h"
|
|
|
|
#endif
|
2008-06-25 00:19:07 -04:00
|
|
|
|
|
|
|
#define activate_mm(prev, next) \
|
|
|
|
do { \
|
|
|
|
paravirt_activate_mm((prev), (next)); \
|
|
|
|
switch_mm((prev), (next), NULL); \
|
|
|
|
} while (0);
|
|
|
|
|
|
|
|
|
2008-06-18 11:08:48 -04:00
|
|
|
#endif /* ASM_X86__MMU_CONTEXT_H */
|