mmu.h 406 B

1234567891011121314151617181920212223242526
  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. struct mutex lock;
  13. void *vdso;
  14. } mm_context_t;
  15. #ifdef CONFIG_SMP
  16. void leave_mm(int cpu);
  17. #else
  18. static inline void leave_mm(int cpu)
  19. {
  20. }
  21. #endif
  22. #endif /* _ASM_X86_MMU_H */