diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-20 06:58:20 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-20 06:58:20 +0000 |
commit | 70e47bba2ff56a3bce2541987cd5e292225be42f (patch) | |
tree | 2d046ce1412336e55898c3507b838bb575dd8a47 /sys/arch/mips64 | |
parent | 003e3a523d0600cfccb707ba0e5b9819c86e8bcd (diff) |
01 -> SA_ONSTACK in sigreturn.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/sendsig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/sendsig.c b/sys/arch/mips64/mips64/sendsig.c index 325b4cb44af..326abbc652d 100644 --- a/sys/arch/mips64/mips64/sendsig.c +++ b/sys/arch/mips64/mips64/sendsig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendsig.c,v 1.7 2005/12/17 21:10:24 kettenis Exp $ */ +/* $OpenBSD: sendsig.c,v 1.8 2005/12/20 06:58:19 miod Exp $ */ /* * Copyright (c) 1990 The Regents of the University of California. @@ -147,7 +147,7 @@ sendsig(catcher, sig, mask, code, type, val) ksc.sc_pc = regs->pc; ksc.mullo = regs->mullo; ksc.mulhi = regs->mulhi; - ksc.sc_regs[0] = 0xACEDBADE; /* magic number */ + ksc.sc_regs[ZERO] = 0xACEDBADE; /* magic number */ bcopy((caddr_t)®s->ast, (caddr_t)&ksc.sc_regs[1], sizeof(ksc.sc_regs) - sizeof(register_t)); ksc.sc_fpused = p->p_md.md_flags & MDP_FPUSED; @@ -256,7 +256,7 @@ sys_sigreturn(p, v, retval) /* * Restore the user supplied information */ - if (scp->sc_onstack & 01) + if (scp->sc_onstack & SA_ONSTACK) p->p_sigacts->ps_sigstk.ss_flags |= SA_ONSTACK; else p->p_sigacts->ps_sigstk.ss_flags &= ~SA_ONSTACK; |