Home
last modified time | relevance | path

Searched refs:old_mm (Results 1 – 5 of 5) sorted by relevance

/arch/cris/mm/
Dtlb.c38 struct mm_struct *old_mm; in alloc_context() local
44 old_mm = page_id_map[map_replace_ptr]; in alloc_context()
46 if(old_mm) { in alloc_context()
50 flush_tlb_mm(old_mm); in alloc_context()
52 old_mm->context.page_id = NO_CONTEXT; in alloc_context()
/arch/x86/kernel/
Dldt.c109 struct mm_struct *old_mm; in init_new_context() local
113 old_mm = current->mm; in init_new_context()
114 if (!old_mm) { in init_new_context()
119 mutex_lock(&old_mm->context.lock); in init_new_context()
120 if (!old_mm->context.ldt) { in init_new_context()
125 new_ldt = alloc_ldt_struct(old_mm->context.ldt->size); in init_new_context()
131 memcpy(new_ldt->entries, old_mm->context.ldt->entries, in init_new_context()
138 mutex_unlock(&old_mm->context.lock); in init_new_context()
/arch/sparc/include/asm/
Dmmu_context_32.h25 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
Dmmu_context_64.h74 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
/arch/sparc/mm/
Dsrmmu.c404 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context() argument
417 if (ctxp->ctx_mm == old_mm) in alloc_context()
460 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in switch_mm() argument
467 alloc_context(old_mm, mm); in switch_mm()