patch-2.4.0-test6 linux/arch/sh/kernel/signal.c

Next file: linux/arch/sh/kernel/time.c
Previous file: linux/arch/sh/kernel/sh_bios.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/arch/sh/kernel/signal.c linux/arch/sh/kernel/signal.c
@@ -198,13 +198,16 @@
 {
 	struct task_struct *tsk = current;
 	unsigned long flags;
+	int val;
 
 	if (!tsk->used_math) {
-		__copy_to_user(&sc->sc_ownedfp, 0, sizeof(int));
+	  val = 0;
+		__copy_to_user(&sc->sc_ownedfp, &val, sizeof(int));
 		return 0;
 	}
 
-	__copy_to_user(&sc->sc_ownedfp, 1, sizeof(int));
+	val = 1;
+	__copy_to_user(&sc->sc_ownedfp, &val, sizeof(int));
 
 	/* This will cause a "finit" to be triggered by the next
 	   attempted FPU operation by the 'current' process.

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