2005-04-16 15:20:36 -07:00
|
|
|
#ifndef __x86_64_MMU_H
|
|
|
|
#define __x86_64_MMU_H
|
|
|
|
|
|
|
|
#include <linux/spinlock.h>
|
2007-10-17 18:04:41 +02:00
|
|
|
#include <linux/mutex.h>
|
2005-04-16 15:20:36 -07: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 18:04:41 +02:00
|
|
|
struct mutex lock;
|
2007-07-21 17:10:01 +02:00
|
|
|
void *vdso;
|
2005-04-16 15:20:36 -07:00
|
|
|
} mm_context_t;
|
|
|
|
|
|
|
|
#endif
|