mmu.h 537 B

1234567891011121314151617181920212223242526272829303132
  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 *vdso;
  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 */