diff options
author | 2011-09-20 13:56:44 +0000 | |
---|---|---|
committer | 2011-09-20 13:56:44 +0000 | |
commit | 2b5e81c327775ebeb131691a44c6f1e8a4940d5a (patch) | |
tree | b9a2f89a93325cdb34b44939a60df915b72f9f8d | |
parent | do not assign pointers to literal strings (diff) | |
download | wireguard-openbsd-2b5e81c327775ebeb131691a44c6f1e8a4940d5a.tar.xz wireguard-openbsd-2b5e81c327775ebeb131691a44c6f1e8a4940d5a.zip |
Use correct index for second iioq/iisq fix up.
Spotted by miod@
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index 1755a0f3b0e..e8ae8164cd1 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.42 2011/09/19 13:21:15 jsing Exp $ */ +/* $OpenBSD: machdep.c,v 1.43 2011/09/20 13:56:44 jsing Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -954,10 +954,10 @@ sys_sigreturn(struct proc *p, void *v, register_t *retval) tf->tf_iisq[0] = HPPA_SID_KERNEL; else tf->tf_iisq[0] = p->p_addr->u_pcb.pcb_space; - if ((tf->tf_iioq[0] & ~PAGE_MASK) == SYSCALLGATE) - tf->tf_iisq[0] = HPPA_SID_KERNEL; + if ((tf->tf_iioq[1] & ~PAGE_MASK) == SYSCALLGATE) + tf->tf_iisq[1] = HPPA_SID_KERNEL; else - tf->tf_iisq[0] = p->p_addr->u_pcb.pcb_space; + tf->tf_iisq[1] = p->p_addr->u_pcb.pcb_space; tf->tf_ipsw = ksc.sc_ps | (curcpu()->ci_psw & PSL_O); #ifdef DEBUG |