mmu_context_32.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __SPARC_MMU_CONTEXT_H
  2. #define __SPARC_MMU_CONTEXT_H
  3. #ifndef __ASSEMBLY__
  4. #include <asm-generic/mm_hooks.h>
  5. static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
  6. {
  7. }
  8. /* Initialize a new mmu context. This is invoked when a new
  9. * address space instance (unique or shared) is instantiated.
  10. */
  11. int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
  12. /* Destroy a dead context. This occurs when mmput drops the
  13. * mm_users count to zero, the mmaps have been released, and
  14. * all the page tables have been flushed. Our job is to destroy
  15. * any remaining processor-specific state.
  16. */
  17. void destroy_context(struct mm_struct *mm);
  18. /* Switch the current MM context. */
  19. void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
  20. struct task_struct *tsk);
  21. #define deactivate_mm(tsk,mm) do { } while (0)
  22. /* Activate a new MM instance for the current task. */
  23. #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL)
  24. #endif /* !(__ASSEMBLY__) */
  25. #endif /* !(__SPARC_MMU_CONTEXT_H) */