patch-2.4.19 linux-2.4.19/arch/m68k/kernel/process.c
Next file: linux-2.4.19/arch/m68k/kernel/ptrace.c
Previous file: linux-2.4.19/arch/m68k/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/m68k/kernel/process.c
- Orig date:
Sun Sep 30 12:26:08 2001
diff -urN linux-2.4.18/arch/m68k/kernel/process.c linux-2.4.19/arch/m68k/kernel/process.c
@@ -136,6 +136,7 @@
register long retval __asm__ ("d0");
register long clone_arg __asm__ ("d1") = flags | CLONE_VM;
+ retval = __NR_clone;
__asm__ __volatile__
("clrl %%d2\n\t"
"trap #0\n\t" /* Linux/m68k system call */
@@ -145,14 +146,15 @@
"movel %3,%%sp@-\n\t" /* push argument */
"jsr %4@\n\t" /* call fn */
"movel %0,%%d1\n\t" /* pass exit value */
- "movel %2,%0\n\t" /* exit */
+ "movel %2,%%d0\n\t" /* exit */
"trap #0\n"
"1:"
- : "=d" (retval)
- : "0" (__NR_clone), "i" (__NR_exit),
+ : "+d" (retval)
+ : "i" (__NR_clone), "i" (__NR_exit),
"r" (arg), "a" (fn), "d" (clone_arg), "r" (current),
"i" (-KTHREAD_SIZE)
- : "d0", "d2");
+ : "d2");
+
pid = retval;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)