2005-01-30 16:55:33

by Yoichi Yuasa

[permalink] [raw]
Subject: [PATCH 2.6.11-rc2-mm2] mips: fixed restore_sigcontext

This patch had fixed restore_sigcontext about MIPS.
This patch is only for 2.6.11-rc2-mm2.

Yoichi

Signed-off-by: Yoichi Yuasa <[email protected]>

diff -urN -X dontdiff a-orig/arch/mips/kernel/signal-common.h a/arch/mips/kernel/signal-common.h
--- a-orig/arch/mips/kernel/signal-common.h Mon Jan 31 00:42:13 2005
+++ a/arch/mips/kernel/signal-common.h Mon Jan 31 01:02:19 2005
@@ -62,6 +62,7 @@
restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc)
{
int err = 0;
+ unsigned int used_math;

/* Always make any pending restarted system calls return -EINTR */
current_thread_info()->restart_block.fn = do_no_restart_syscall;
@@ -86,7 +87,7 @@
restore_gp_reg(31);
#undef restore_gp_reg

- err |= __get_user(!!used_math(), &sc->sc_used_math);
+ err |= __get_user(used_math, &sc->sc_used_math);
conditional_used_math(used_math);

preempt_disable();