Blame view

arch/x86/include/asm/mmu.h 537 Bytes
1965aae3c   H. Peter Anvin   x86: Fix ASM_X86_...
1
2
  #ifndef _ASM_X86_MMU_H
  #define _ASM_X86_MMU_H
703530238   Chris Snook   x86: merge mmu{,_...
3
4
5
6
7
8
9
  
  #include <linux/spinlock.h>
  #include <linux/mutex.h>
  
  /*
   * The x86 doesn't have a mmu context, but
   * we put the segment information here.
703530238   Chris Snook   x86: merge mmu{,_...
10
   */
710d0e9cc   Joe Perches   include/asm-x86/m...
11
  typedef struct {
703530238   Chris Snook   x86: merge mmu{,_...
12
  	void *ldt;
703530238   Chris Snook   x86: merge mmu{,_...
13
  	int size;
c2ef45df3   Stephen Wilson   x86: add context ...
14
15
16
17
18
  
  #ifdef CONFIG_X86_64
  	/* True if mm supports a task running in 32 bit compatibility mode. */
  	unsigned short ia32_compat;
  #endif
af6a25f0e   Richard Kennedy   x86: Reorder mm_c...
19
20
  	struct mutex lock;
  	void *vdso;
703530238   Chris Snook   x86: merge mmu{,_...
21
  } mm_context_t;
bde6f5f59   Venki Pallipadi   x86: voluntary le...
22
23
24
25
26
27
28
  #ifdef CONFIG_SMP
  void leave_mm(int cpu);
  #else
  static inline void leave_mm(int cpu)
  {
  }
  #endif
1965aae3c   H. Peter Anvin   x86: Fix ASM_X86_...
29
  #endif /* _ASM_X86_MMU_H */