2005-04-16 16:20:36 -06:00
|
|
|
#ifndef __x86_64_MMU_H
|
|
|
|
#define __x86_64_MMU_H
|
|
|
|
|
|
|
|
#include <linux/spinlock.h>
|
2007-10-17 10:04:41 -06:00
|
|
|
#include <linux/mutex.h>
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The x86_64 doesn't have a mmu context, but
|
|
|
|
* we put the segment information here.
|
|
|
|
*
|
|
|
|
* cpu_vm_mask is used to optimize ldt flushing.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
void *ldt;
|
|
|
|
rwlock_t ldtlock;
|
|
|
|
int size;
|
2007-10-17 10:04:41 -06:00
|
|
|
struct mutex lock;
|
2007-07-21 09:10:01 -06:00
|
|
|
void *vdso;
|
2005-04-16 16:20:36 -06:00
|
|
|
} mm_context_t;
|
|
|
|
|
|
|
|
#endif
|