Home
last modified time | relevance | path

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

/linux-2.4.37.9/arch/i386/kernel/
Dldt.c91 struct mm_struct * old_mm; in init_new_context() local
96 old_mm = current->mm; in init_new_context()
97 if (old_mm && old_mm->context.size > 0) { in init_new_context()
98 down(&old_mm->context.sem); in init_new_context()
99 retval = copy_ldt(&mm->context, &old_mm->context); in init_new_context()
100 up(&old_mm->context.sem); in init_new_context()
/linux-2.4.37.9/arch/cris/mm/
Dtlb.c242 struct mm_struct *old_mm; in alloc_context() local
248 old_mm = page_id_map[map_replace_ptr]; in alloc_context()
250 if(old_mm) { in alloc_context()
254 flush_tlb_mm(old_mm); in alloc_context()
256 old_mm->context = NO_CONTEXT; in alloc_context()
/linux-2.4.37.9/include/asm-sparc/
Dmmu_context.h31 #define switch_mm(old_mm, mm, tsk, cpu) BTFIXUP_CALL(switch_mm)(old_mm, mm, tsk, cpu) argument
/linux-2.4.37.9/fs/
Dexec.c430 struct mm_struct * mm, * old_mm; in exec_mmap() local
432 old_mm = current->mm; in exec_mmap()
434 if (old_mm && atomic_read(&old_mm->mm_users) == 1) { in exec_mmap()
436 down_write(&old_mm->mmap_sem); in exec_mmap()
437 exit_mmap(old_mm); in exec_mmap()
438 up_write(&old_mm->mmap_sem); in exec_mmap()
465 if (old_mm) { in exec_mmap()
466 if (active_mm != old_mm) BUG(); in exec_mmap()
467 mmput(old_mm); in exec_mmap()
/linux-2.4.37.9/include/asm-sparc64/
Dmmu_context.h110 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
120 if (!ctx_valid || (old_mm != mm)) { in switch_mm()
/linux-2.4.37.9/arch/x86_64/kernel/
Dprocess.c483 struct mm_struct * old_mm; in copy_segments() local
487 old_mm = current->mm; in copy_segments()
488 if (old_mm && (old_ldt = old_mm->context.segments) != NULL) { in copy_segments()
/linux-2.4.37.9/arch/sparc/mm/
Dsun4c.c1603 static void sun4c_alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in sun4c_alloc_context() argument
1616 if (ctxp->ctx_mm == old_mm) in sun4c_alloc_context()
1628 static void sun4c_switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *tsk… in sun4c_switch_mm() argument
1635 sun4c_alloc_context(old_mm, mm); in sun4c_switch_mm()
1642 if (dirty || old_mm != mm) in sun4c_switch_mm()
Dsrmmu.c457 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context() argument
470 if(ctxp->ctx_mm == old_mm) in alloc_context()
493 static void srmmu_switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in srmmu_switch_mm() argument
498 alloc_context(old_mm, mm); in srmmu_switch_mm()