From 7206675c40394c78a90e74812bbdbf8cf3cca1be Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Mar 1997 23:40:36 +0000 Subject: Import of Linux/MIPS 2.1.14.2 --- kernel/exit.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'kernel/exit.c') diff --git a/kernel/exit.c b/kernel/exit.c index d2fdbdc4a..d4c54209d 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -475,6 +475,9 @@ static inline void __exit_mm(struct task_struct * tsk) if (mm != &init_mm) { flush_cache_mm(mm); flush_tlb_mm(mm); +#ifdef __mips__ + mm->context = 0; +#endif tsk->mm = &init_mm; tsk->swappable = 0; SET_PAGE_DIR(tsk, swapper_pg_dir); @@ -712,12 +715,3 @@ asmlinkage int sys_waitpid(pid_t pid,unsigned int * stat_addr, int options) } #endif - -/* - * sys_wait() has been added for compatibility. wait() should be - * implemented by calling sys_wait4() from libc.a. - */ -asmlinkage int sys_wait(unsigned int * stat_addr) -{ - return sys_wait4(-1, stat_addr, 0, NULL); -} -- cgit v1.2.3