mmu_64.h 370 B

123456789101112131415161718192021
  1. #ifndef __x86_64_MMU_H
  2. #define __x86_64_MMU_H
  3. #include <linux/spinlock.h>
  4. #include <asm/semaphore.h>
  5. /*
  6. * The x86_64 doesn't have a mmu context, but
  7. * we put the segment information here.
  8. *
  9. * cpu_vm_mask is used to optimize ldt flushing.
  10. */
  11. typedef struct {
  12. void *ldt;
  13. rwlock_t ldtlock;
  14. int size;
  15. struct semaphore sem;
  16. void *vdso;
  17. } mm_context_t;
  18. #endif