blob: 80a1dee5bea5ec67bb77adf6db286f471d8006e8 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#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
H. Peter Anvin1965aae2008-10-22 22:26:29 -070026#endif /* _ASM_X86_MMU_H */