patch-2.1.19 linux/arch/sparc/kernel/process.c
Next file: linux/arch/sparc/kernel/rtrap.S
Previous file: linux/arch/sparc/kernel/head.S
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Mon Dec 30 11:59:58 1996
- Orig file:
v2.1.18/linux/arch/sparc/kernel/process.c
- Orig date:
Sun Dec 22 16:37:23 1996
diff -u --recursive --new-file v2.1.18/linux/arch/sparc/kernel/process.c linux/arch/sparc/kernel/process.c
@@ -1,4 +1,4 @@
-/* $Id: process.c,v 1.85 1996/12/18 06:33:42 tridge Exp $
+/* $Id: process.c,v 1.87 1996/12/30 06:16:21 davem Exp $
* linux/arch/sparc/kernel/process.c
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -280,7 +280,7 @@
*/
void exit_thread(void)
{
- flush_user_windows();
+ kill_user_windows();
#ifndef __SMP__
if(last_task_used_math == current) {
#else
@@ -296,15 +296,13 @@
current->flags &= ~PF_USEDFPU;
#endif
}
- mmu_exit_hook();
}
void flush_thread(void)
{
/* Make sure old user windows don't get in the way. */
- flush_user_windows();
- current->tss.w_saved = 0;
- current->tss.uwinmask = 0;
+ kill_user_windows();
+
current->tss.sstk_info.cur_status = 0;
current->tss.sstk_info.the_stack = 0;
@@ -326,7 +324,6 @@
#endif
}
- mmu_flush_hook();
/* Now, this task is no longer a kernel thread. */
current->tss.flags &= ~SPARC_FLAG_KTHREAD;
current->tss.current_ds = USER_DS;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov