summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-02-12 04:11:43 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-02-12 04:11:43 +0000
commit68fe06df6d6fa032c5b07fa0d4aac1b6f28b060c (patch)
tree4c2ea81d144a93e43538118b79bbb82e0d8509b7 /sys/arch
parent1528d636e1ac4eb0904e69192982d146d1c5c565 (diff)
Preserve rval[1] across system calls if not explictly overwritten,
per recent discussion with miod and mickey
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm/arm/syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/arm/arm/syscall.c b/sys/arch/arm/arm/syscall.c
index 688c0dd5329..5cd4e547631 100644
--- a/sys/arch/arm/arm/syscall.c
+++ b/sys/arch/arm/arm/syscall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.c,v 1.2 2004/02/11 22:03:17 miod Exp $ */
+/* $OpenBSD: syscall.c,v 1.3 2004/02/12 04:11:42 drahn Exp $ */
/* $NetBSD: syscall.c,v 1.24 2003/11/14 19:03:17 scw Exp $ */
/*-
@@ -289,7 +289,7 @@ syscall_plain(struct trapframe *frame, struct proc *p, u_int32_t insn)
scdebug_call(p, code, args);
#endif
rval[0] = 0;
- rval[1] = 0;
+ rval[1] = frame->tf_r1;
error = (*callp->sy_call)(p, args, rval);
switch (error) {