/arch/x86/include/asm/mmu.h

https://bitbucket.org/cresqo/cm7-p500-kernel · C Header · 26 lines · 18 code · 4 blank · 4 comment · 0 complexity · a293a1b171612a51c18a747dabc7996d MD5 · raw file

  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 */