summaryrefslogtreecommitdiffstats
path: root/arch/mips64/kernel/signal.c
diff options
context:
space:
mode:
authorUlf Carlsson <md1ulfc@mdstud.chalmers.se>2000-05-13 00:22:36 +0000
committerUlf Carlsson <md1ulfc@mdstud.chalmers.se>2000-05-13 00:22:36 +0000
commit4bc5b42e99fed8e6e548feb8412dd5f987723557 (patch)
tree872a33b1f92a4f9f62a656137a2eaa449336771e /arch/mips64/kernel/signal.c
parent7fd36ebeeec9244a7431bb010e6e3c5e4848a0d5 (diff)
sigset_t is only 2 words nowadays
Diffstat (limited to 'arch/mips64/kernel/signal.c')
-rw-r--r--arch/mips64/kernel/signal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips64/kernel/signal.c b/arch/mips64/kernel/signal.c
index 7f644a437..e2b83596c 100644
--- a/arch/mips64/kernel/signal.c
+++ b/arch/mips64/kernel/signal.c
@@ -162,8 +162,6 @@ sys_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
err |= __put_user(old_ka.sa.sa_handler, &oact->sa_handler);
err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig);
err |= __put_user(0, &oact->sa_mask.sig[1]);
- err |= __put_user(0, &oact->sa_mask.sig[2]);
- err |= __put_user(0, &oact->sa_mask.sig[3]);
err |= __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer);
if (err)
return -EFAULT;
@@ -319,7 +317,7 @@ setup_sigcontext(struct pt_regs *regs, struct sigcontext *sc)
err |= __put_user(regs->cp0_epc, &sc->sc_pc);
-#define save_gp_reg(i) { \
+#define save_gp_reg(i) do { \
err |= __put_user(regs->regs[i], &sc->sc_regs[i]); \
} while(0)
__put_user(0, &sc->sc_regs[0]); save_gp_reg(1); save_gp_reg(2);