mmu_context.h 700 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __H8300_MMU_CONTEXT_H
  2. #define __H8300_MMU_CONTEXT_H
  3. #include <linux/config.h>
  4. #include <asm/setup.h>
  5. #include <asm/page.h>
  6. #include <asm/pgalloc.h>
  7. static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
  8. {
  9. }
  10. extern inline int
  11. init_new_context(struct task_struct *tsk, struct mm_struct *mm)
  12. {
  13. // mm->context = virt_to_phys(mm->pgd);
  14. return(0);
  15. }
  16. #define destroy_context(mm) do { } while(0)
  17. #define deactivate_mm(tsk,mm) do { } while(0)
  18. static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk)
  19. {
  20. }
  21. extern inline void activate_mm(struct mm_struct *prev_mm,
  22. struct mm_struct *next_mm)
  23. {
  24. }
  25. #endif