summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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;
}