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();

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to