diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-06 17:23:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-06 17:23:42 +0000 |
commit | d224251fafcaedd990c2a4057e2f3b6d5bb99494 (patch) | |
tree | c0bae3d1d0faae558a3d1ffeac06548ae1d246ce /sys/arch/hp300 | |
parent | 3732c290577edb668e224ca3bf9f5464a30a7243 (diff) |
Homogeneize all PSR field tests in user-provided structures. No functional
change.
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r-- | sys/arch/hp300/hp300/hpux_machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/hpux_machdep.c b/sys/arch/hp300/hp300/hpux_machdep.c index 33f74e1caab..2253a52c63b 100644 --- a/sys/arch/hp300/hp300/hpux_machdep.c +++ b/sys/arch/hp300/hp300/hpux_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_machdep.c,v 1.19 2005/08/06 12:10:28 miod Exp $ */ +/* $OpenBSD: hpux_machdep.c,v 1.20 2005/11/06 17:23:39 miod Exp $ */ /* $NetBSD: hpux_machdep.c,v 1.19 1998/02/16 20:58:30 thorpej Exp $ */ /* @@ -575,7 +575,8 @@ hpux_sys_sigreturn(p, v, retval) if (copyin((caddr_t)scp, (caddr_t)&tsigc, sizeof tsigc)) return (EINVAL); scp = &tsigc; - if ((scp->hsc_ps & (PSL_MBZ|PSL_IPL|PSL_S)) != 0) + if ((scp->hsc_ps & PSL_USERCLR) != 0 || + (scp->hsc_ps & PSL_USERSET) != PSL_USERSET) return (EINVAL); /* |