summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-09-20 13:56:45 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-09-20 13:56:45 +0000
commit03aaea893c8ae74ee1a6d1a4c3b7dab7bacdc508 (patch)
treea205f86577faf38d1a234d942d903d6a0ea7a266 /sys/arch/hppa64
parent225482a19298e9405e1c489a15c6086456e5eb4c (diff)
Use correct index for second iioq/iisq fix up.
Spotted by miod@
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r--sys/arch/hppa64/hppa64/machdep.c8
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