mmu.h 609 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _ASM_X86_MMU_H
  2. #define _ASM_X86_MMU_H
  3. #include <linux/spinlock.h>
  4. #include <linux/mutex.h>
  5. /*
  6. * The x86 doesn't have a mmu context, but
  7. * we put the segment information here.
  8. */
  9. typedef struct {
  10. void *ldt;
  11. int size;
  12. #ifdef CONFIG_X86_64
  13. /* True if mm supports a task running in 32 bit compatibility mode. */
  14. unsigned short ia32_compat;
  15. #endif
  16. struct mutex lock;
  17. void __user *vdso;
  18. atomic_t perf_rdpmc_allowed; /* nonzero if rdpmc is allowed */
  19. } mm_context_t;
  20. #ifdef CONFIG_SMP
  21. void leave_mm(int cpu);
  22. #else
  23. static inline void leave_mm(int cpu)
  24. {
  25. }
  26. #endif
  27. #endif /* _ASM_X86_MMU_H */