patch-2.3.40 linux/arch/sparc/kernel/process.c

Next file: linux/arch/sparc/kernel/sparc_ksyms.c
Previous file: linux/arch/sparc/defconfig
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/arch/sparc/kernel/process.c linux/arch/sparc/kernel/process.c
@@ -1,4 +1,4 @@
-/*  $Id: process.c,v 1.142 1999/12/27 06:08:31 anton Exp $
+/*  $Id: process.c,v 1.143 2000/01/09 09:13:28 anton Exp $
  *  linux/arch/sparc/kernel/process.c
  *
  *  Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -502,6 +502,9 @@
 	p->thread.kpsr = current->thread.fork_kpsr;
 #endif
 	p->thread.kwim = current->thread.fork_kwim;
+
+	/* This is used for sun4c only */
+	atomic_set(&p->thread.refcount, 1);
 
 	if(regs->psr & PSR_PS) {
 		extern struct pt_regs fake_swapper_regs;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)