patch-2.0.14 linux/arch/alpha/kernel/process.c

Next file: linux/arch/alpha/kernel/setup.c
Previous file: linux/arch/alpha/kernel/osf_sys.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.13/linux/arch/alpha/kernel/process.c linux/arch/alpha/kernel/process.c
@@ -85,7 +85,7 @@
  */
 void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
 {
-	current->tss.segment = USER_DS;
+	set_fs(USER_DS);
 	regs->pc = pc;
 	regs->ps = 8;
 	wrusp(sp);
@@ -157,7 +157,8 @@
 	childstack->r26 = (unsigned long) ret_from_sys_call;
 	p->tss.usp = usp;
 	p->tss.ksp = (unsigned long) childstack;
-	p->tss.flags = 1;
+	p->tss.pal_flags = 1;	/* set FEN, clear everything else */
+	p->tss.flags = current->tss.flags;
 	p->mm->context = 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov