patch-1.3.22 linux/arch/mips/kernel/process.c
Next file: linux/arch/mips/kernel/ptrace.c
Previous file: linux/arch/i386/mm/init.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Thu Aug 31 11:44:45 1995
- Orig file:
v1.3.21/linux/arch/mips/kernel/process.c
- Orig date:
Wed Jan 25 08:54:22 1995
diff -u --recursive --new-file v1.3.21/linux/arch/mips/kernel/process.c linux/arch/mips/kernel/process.c
@@ -87,7 +87,7 @@
#define IS_CLONE (regs->orig_reg2 == __NR_clone)
-unsigned long copy_thread(int nr, unsigned long clone_flags, struct task_struct * p, struct pt_regs * regs)
+void copy_thread(int nr, unsigned long clone_flags, struct task_struct * p, struct pt_regs * regs)
{
struct pt_regs * childregs;
@@ -109,16 +109,6 @@
p->tss.cp0_status = regs->cp0_status &
~(ST0_CU1|ST0_CU0|ST0_KSU|ST0_ERL|ST0_EXL);
childregs->cp0_status &= ~(ST0_CU1|ST0_CU0);
-
- if (IS_CLONE) {
- if (regs->reg4)
- childregs->reg29 = regs->reg4;
- clone_flags = regs->reg5;
- if (childregs->reg29 == regs->reg29)
- clone_flags |= COPYVM;
- }
-
- return clone_flags;
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this