Searched refs:old_mm (Results 1 – 5 of 5) sorted by relevance
/arch/cris/mm/ |
D | tlb.c | 38 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/ |
D | ldt.c | 125 struct mm_struct *old_mm; in init_new_context_ldt() local 129 old_mm = current->mm; in init_new_context_ldt() 130 if (!old_mm) { in init_new_context_ldt() 135 mutex_lock(&old_mm->context.lock); in init_new_context_ldt() 136 if (!old_mm->context.ldt) { in init_new_context_ldt() 141 new_ldt = alloc_ldt_struct(old_mm->context.ldt->size); in init_new_context_ldt() 147 memcpy(new_ldt->entries, old_mm->context.ldt->entries, in init_new_context_ldt() 154 mutex_unlock(&old_mm->context.lock); in init_new_context_ldt()
|
/arch/sparc/include/asm/ |
D | mmu_context_32.h | 25 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
|
D | mmu_context_64.h | 74 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/ |
D | srmmu.c | 410 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context() argument 423 if (ctxp->ctx_mm == old_mm) in alloc_context() 466 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in switch_mm() argument 473 alloc_context(old_mm, mm); in switch_mm()
|