diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-08-25 06:33:44 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-08-25 06:33:44 +0000 |
commit | 6bd6dbbd3ae53a268a510270bebaab24fff382ca (patch) | |
tree | 41d0361e6b48ce74584c9a6fcb475d5054ca4141 /arch/sh/kernel/signal.c | |
parent | ee355114ec6062d00c1376b184b886a39e74fd4e (diff) |
Merge with Linux 2.4.0-test6-pre10.
Diffstat (limited to 'arch/sh/kernel/signal.c')
-rw-r--r-- | arch/sh/kernel/signal.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/kernel/signal.c b/arch/sh/kernel/signal.c index 221af3022..9bdddc9d9 100644 --- a/arch/sh/kernel/signal.c +++ b/arch/sh/kernel/signal.c @@ -198,13 +198,16 @@ static inline int save_sigcontext_fpu(struct sigcontext *sc) { 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. |