[MIPS] signal32: no need to save c0_status register in setup_sigcontext32()
All the information in the MIPS c0_status register is priviledged. Nothing that would constitute part of the thread context. The one flag one could possibly argument about might be c0_status.fr but none of the ABIs or tools or application software can make use of it. So for consistency with restore_sigcontext32(), which does not restore c0_status register, this patch remove the saving part. Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
9432a9ba96
commit
6bfe966160
@ -170,7 +170,6 @@ static int setup_sigcontext32(struct pt_regs *regs,
|
||||
int i;
|
||||
|
||||
err |= __put_user(regs->cp0_epc, &sc->sc_pc);
|
||||
err |= __put_user(regs->cp0_status, &sc->sc_status);
|
||||
|
||||
err |= __put_user(0, &sc->sc_regs[0]);
|
||||
for (i = 1; i < 32; i++)
|
||||
|
Reference in New Issue
Block a user