Skip to content

Commit

Permalink
Get rid of the eir struct mips_fpu_emulator_private member. It's
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 1d74f6b commit baee502
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions arch/mips/math-emu/kernel_linkage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion include/asm-mips/fpu_emulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#define _ASM_FPU_EMULATOR_H

struct mips_fpu_emulator_private {
unsigned int eir;
struct {
unsigned int emulated;
unsigned int loads;
Expand Down

0 comments on commit baee502

Please sign in to comment.