From d5b53dc02d059c4fbd5a117ffd737efda260d5c1 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Thu, 25 Jan 2001 03:02:44 +0000 Subject: fill in rval[1] return value for non signal return other than 0 (normal). Found when playing with threads. --- sys/arch/powerpc/powerpc/trap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch') diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c index 94530e7b397..67e5197db94 100644 --- a/sys/arch/powerpc/powerpc/trap.c +++ b/sys/arch/powerpc/powerpc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.21 2000/11/10 18:15:42 art Exp $ */ +/* $OpenBSD: trap.c,v 1.22 2001/01/25 03:02:43 drahn Exp $ */ /* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */ /* @@ -312,6 +312,7 @@ syscall_bad: error = p->p_emul->e_errno[error]; frame->fixreg[0] = error; frame->fixreg[FIRSTARG] = error; + frame->fixreg[FIRSTARG + 1] = rval[1]; frame->cr |= 0x10000000; break; } -- cgit v1.2.3