summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-01-25 03:02:44 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-01-25 03:02:44 +0000
commitd5b53dc02d059c4fbd5a117ffd737efda260d5c1 (patch)
treeeec3b225f9121588584554bfacffb85c767b58c2 /sys/arch
parent4ef5a0641f6a059d922166341e8d5d8ab46bff4e (diff)
fill in rval[1] return value for non signal return other than 0 (normal).
Found when playing with threads.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/powerpc/trap.c3
1 files changed, 2 insertions, 1 deletions
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;
}