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

Next file: linux/arch/alpha/mm/init.c
Previous file: linux/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.12/linux/arch/alpha/kernel/process.c linux/arch/alpha/kernel/process.c
@@ -81,6 +81,17 @@
 }
 
 /*
+ * Re-start a thread when doing execve()
+ */
+void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
+{
+	current->tss.segment = USER_DS;
+	regs->pc = pc;
+	regs->ps = 8;
+	wrusp(sp);
+}
+
+/*
  * Free current thread data structures etc..
  */
 void exit_thread(void)

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