1 #ifndef __SPARC_MMU_CONTEXT_H
2 #define __SPARC_MMU_CONTEXT_H
4 #include <asm/btfixup.h>
8 #include <asm-generic/mm_hooks.h>
10 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
15 * Initialize a new mmu context. This is invoked when a new
16 * address space instance (unique or shared) is instantiated.
18 #define init_new_context(tsk, mm) (((mm)->context = NO_CONTEXT), 0)
21 * Destroy a dead context. This occurs when mmput drops the
22 * mm_users count to zero, the mmaps have been released, and
23 * all the page tables have been flushed. Our job is to destroy
24 * any remaining processor-specific state.
26 void destroy_context(struct mm_struct *mm);
28 /* Switch the current MM context. */
29 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
30 struct task_struct *tsk);
32 #define deactivate_mm(tsk,mm) do { } while (0)
34 /* Activate a new MM instance for the current task. */
35 #define activate_mm(active_mm, mm) switch_mm((active_mm), (mm), NULL)
37 #endif /* !(__ASSEMBLY__) */
39 #endif /* !(__SPARC_MMU_CONTEXT_H) */