From 03aaea893c8ae74ee1a6d1a4c3b7dab7bacdc508 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Tue, 20 Sep 2011 13:56:45 +0000 Subject: Use correct index for second iioq/iisq fix up. Spotted by miod@ --- sys/arch/hppa64/hppa64/machdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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 -- cgit v1.2.3