H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_MMU_H |
| 2 | #define _ASM_X86_MMU_H |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 3 | |
| 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 Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 10 | */ |
Joe Perches | 710d0e9 | 2008-03-23 01:02:44 -0700 | [diff] [blame] | 11 | typedef struct { |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 12 | void *ldt; |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 13 | int size; |
Stephen Wilson | c2ef45d | 2011-03-13 15:49:13 -0400 | [diff] [blame] | 14 | |
| 15 | #ifdef CONFIG_X86_64 |
| 16 | /* True if mm supports a task running in 32 bit compatibility mode. */ |
| 17 | unsigned short ia32_compat; |
| 18 | #endif |
| 19 | |
Richard Kennedy | af6a25f | 2011-05-24 14:49:59 +0100 | [diff] [blame] | 20 | struct mutex lock; |
| 21 | void *vdso; |
Chris Snook | 7035302 | 2007-10-20 02:56:59 -0400 | [diff] [blame] | 22 | } mm_context_t; |
| 23 | |
Venki Pallipadi | bde6f5f | 2008-01-30 13:32:01 +0100 | [diff] [blame] | 24 | #ifdef CONFIG_SMP |
| 25 | void leave_mm(int cpu); |
| 26 | #else |
| 27 | static inline void leave_mm(int cpu) |
| 28 | { |
| 29 | } |
| 30 | #endif |
| 31 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 32 | #endif /* _ASM_X86_MMU_H */ |