aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/mmu_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/mmu_context.h')
-rw-r--r--include/asm-sparc64/mmu_context.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/asm-sparc64/mmu_context.h b/include/asm-sparc64/mmu_context.h
index 2760353591ab..eb660b1609c4 100644
--- a/include/asm-sparc64/mmu_context.h
+++ b/include/asm-sparc64/mmu_context.h
@@ -22,14 +22,18 @@ extern void get_new_mmu_context(struct mm_struct *mm);
22extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm); 22extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
23extern void destroy_context(struct mm_struct *mm); 23extern void destroy_context(struct mm_struct *mm);
24 24
25extern void __tsb_context_switch(unsigned long pgd_pa, unsigned long tsb_reg, 25extern void __tsb_context_switch(unsigned long pgd_pa,
26 unsigned long tsb_vaddr, unsigned long tsb_pte); 26 unsigned long tsb_reg,
27 unsigned long tsb_vaddr,
28 unsigned long tsb_pte,
29 unsigned long tsb_descr_pa);
27 30
28static inline void tsb_context_switch(struct mm_struct *mm) 31static inline void tsb_context_switch(struct mm_struct *mm)
29{ 32{
30 __tsb_context_switch(__pa(mm->pgd), mm->context.tsb_reg_val, 33 __tsb_context_switch(__pa(mm->pgd), mm->context.tsb_reg_val,
31 mm->context.tsb_map_vaddr, 34 mm->context.tsb_map_vaddr,
32 mm->context.tsb_map_pte); 35 mm->context.tsb_map_pte,
36 __pa(&mm->context.tsb_descr));
33} 37}
34 38
35extern void tsb_grow(struct mm_struct *mm, unsigned long mm_rss, gfp_t gfp_flags); 39extern void tsb_grow(struct mm_struct *mm, unsigned long mm_rss, gfp_t gfp_flags);