Get rid of the eir struct mips_fpu_emulator_private member. It's
authorRalf Baechle <ralf@linux-mips.org>
Wed, 11 May 2005 11:00:36 +0000 (11:00 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:31:14 +0000 (19:31 +0100)
never initialized been initialized anywhere, just saved to and
restored from signal frames so nonsense anyway.  As neat side effect
of being shared between all processors it was also abusable as a
nice covert channel between processes.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/kernel_linkage.c
include/asm-mips/fpu_emulator.h

index 03d9a55600042282e530ab85023bf271618432d0..d187ab71c2ff17d4178248fa625cfe86f9a6a940 100644 (file)
@@ -63,7 +63,6 @@ int fpu_emulator_save_context(struct sigcontext *sc)
                               &sc->sc_fpregs[i]);
        }
        err |= __put_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr);
-       err |= __put_user(fpuemuprivate.eir, &sc->sc_fpc_eir);
 
        return err;
 }
@@ -79,7 +78,6 @@ int fpu_emulator_restore_context(struct sigcontext *sc)
                               &sc->sc_fpregs[i]);
        }
        err |= __get_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr);
-       err |= __get_user(fpuemuprivate.eir, &sc->sc_fpc_eir);
 
        return err;
 }
@@ -100,7 +98,6 @@ int fpu_emulator_save_context32(struct sigcontext32 *sc)
                               &sc->sc_fpregs[i]);
        }
        err |= __put_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr);
-       err |= __put_user(fpuemuprivate.eir, &sc->sc_fpc_eir);
 
        return err;
 }
@@ -116,7 +113,6 @@ int fpu_emulator_restore_context32(struct sigcontext32 *sc)
                               &sc->sc_fpregs[i]);
        }
        err |= __get_user(current->thread.fpu.soft.fcr31, &sc->sc_fpc_csr);
-       err |= __get_user(fpuemuprivate.eir, &sc->sc_fpc_eir);
 
        return err;
 }
index ea2fae10865f201444aef3d6fb561edf1628cb38..42d883ba1a34af9faf76150f5dfeee35a3275202 100644 (file)
@@ -24,7 +24,6 @@
 #define _ASM_FPU_EMULATOR_H
 
 struct mips_fpu_emulator_private {
-       unsigned int eir;
        struct {
                unsigned int emulated;
                unsigned int loads;