mmu.h 611 B

123456789101112131415161718192021222324252627282930313233
  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. struct ldt_struct *ldt;
  11. #ifdef CONFIG_X86_64
  12. /* True if mm supports a task running in 32 bit compatibility mode. */
  13. unsigned short ia32_compat;
  14. #endif
  15. struct mutex lock;
  16. void __user *vdso;
  17. atomic_t perf_rdpmc_allowed; /* nonzero if rdpmc is allowed */
  18. } mm_context_t;
  19. #ifdef CONFIG_SMP
  20. void leave_mm(int cpu);
  21. #else
  22. static inline void leave_mm(int cpu)
  23. {
  24. }
  25. #endif
  26. #endif /* _ASM_X86_MMU_H */