blob: 9d5aff14334a9214401d064c0bc54952e72da9c7 [file] [log] [blame]
Vegard Nossum77ef50a2008-06-18 17:08:48 +02001#ifndef ASM_X86__MMU_H
2#define ASM_X86__MMU_H
Chris Snook70353022007-10-20 02:56:59 -04003
4#include <linux/spinlock.h>
5#include <linux/mutex.h>
6
7/*
8 * The x86 doesn't have a mmu context, but
9 * we put the segment information here.
Chris Snook70353022007-10-20 02:56:59 -040010 */
Joe Perches710d0e92008-03-23 01:02:44 -070011typedef struct {
Chris Snook70353022007-10-20 02:56:59 -040012 void *ldt;
Chris Snook70353022007-10-20 02:56:59 -040013 int size;
14 struct mutex lock;
15 void *vdso;
16} mm_context_t;
17
Venki Pallipadibde6f5f2008-01-30 13:32:01 +010018#ifdef CONFIG_SMP
19void leave_mm(int cpu);
20#else
21static inline void leave_mm(int cpu)
22{
23}
24#endif
25
Vegard Nossum77ef50a2008-06-18 17:08:48 +020026#endif /* ASM_X86__MMU_H */