patch-2.2.12 linux/arch/sparc64/kernel/process.c

Next file: linux/arch/sparc64/math-emu/op-2.h
Previous file: linux/arch/sparc64/kernel/init_task.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.11/linux/arch/sparc64/kernel/process.c linux/arch/sparc64/kernel/process.c
@@ -1,4 +1,4 @@
-/*  $Id: process.c,v 1.92 1999/05/08 23:04:48 davem Exp $
+/*  $Id: process.c,v 1.92.2.1 1999/08/12 11:30:31 davem Exp $
  *  arch/sparc64/kernel/process.c
  *
  *  Copyright (C) 1995, 1996 David S. Miller (davem@caip.rutgers.edu)
@@ -652,10 +652,14 @@
  * a system call from a "real" process, but the process memory space will
  * not be free'd until both the parent and the child have exited.
  */
-pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
+pid_t kernel_thread(int (*__fn)(void *), void * __arg, unsigned long flags)
 {
+	register int (*fn)(void *) asm("g2");
+	register void *arg asm("g3");
 	long retval;
 
+	fn = __fn;
+	arg = __arg;
 	__asm__ __volatile("mov %1, %%g1\n\t"
 			   "mov %2, %%o0\n\t"	   /* Clone flags. */
 			   "mov 0, %%o1\n\t"	   /* usp arg == 0 */

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