patch-2.0.21-2.1.0 linux/include/asm-m68k/unistd.h

Next file: linux/include/asm-m68k/zorro.h
Previous file: linux/include/asm-m68k/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file lx2.0/v2.0.21/linux/include/asm-m68k/unistd.h linux/include/asm-m68k/unistd.h
@@ -437,6 +437,10 @@
 {
 	register long retval __asm__ ("d0") = __NR_clone;
 	register long clone_arg __asm__ ("d1") = flags | CLONE_VM;
+	unsigned short fs;
+
+	fs = get_fs();
+	set_fs (KERNEL_DS);
 
 	__asm__ __volatile__
 	  ("movel %%sp,%%d2\n\t"
@@ -453,6 +457,7 @@
 	     "r" (arg), "a" (fn), "d" (clone_arg)
 	   : "d0", "d2");
 
+	set_fs (fs);
 	return retval;
 }
 

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