linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ralf@linux-mips.org
Date: Tue, 31 May 2005 14:22:27 +0100
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ralf@ftp.linux-mips.org 05/05/31 14:22:22

Modified files:
        arch/mips/kernel: signal32.c 

Log message:
        The DSP status register was missing ...

diff -urN linux/arch/mips/kernel/signal32.c linux/arch/mips/kernel/signal32.c
--- linux/arch/mips/kernel/signal32.c   2005/05/31 11:49:19     1.29
+++ linux/arch/mips/kernel/signal32.c   2005/05/31 13:22:22     1.30
@@ -352,6 +352,7 @@
                err |= __get_user(treg, &sc->sc_lo2); mtlo2(treg);
                err |= __get_user(treg, &sc->sc_hi3); mthi3(treg);
                err |= __get_user(treg, &sc->sc_lo3); mtlo3(treg);
+               err |= __get_user(treg, &sc->sc_dsp); wrdsp(treg, DSP_MASK);
        }
 
 #define restore_gp_reg(i) do {                                         \
@@ -573,6 +574,7 @@
        err |= __put_user(regs->hi, &sc->sc_mdhi);
        err |= __put_user(regs->lo, &sc->sc_mdlo);
        if (cpu_has_dsp) {
+               err |= __put_user(rddsp(DSP_MASK), &sc->sc_hi1);
                err |= __put_user(mfhi1(), &sc->sc_hi1);
                err |= __put_user(mflo1(), &sc->sc_lo1);
                err |= __put_user(mfhi2(), &sc->sc_hi2);

<Prev in Thread] Current Thread [Next in Thread>