summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-06-03 05:17:36 +0000
committermiod <miod@openbsd.org>2004-06-03 05:17:36 +0000
commitb59760fe7d26f7e15206e55465045bf5269ec029 (patch)
treeaa0b0c809e0e1aa3a186f09cba1c453aa95b1622
parentrl at cardbus, requested by brad. poor brad. everyones feel for him. (diff)
downloadwireguard-openbsd-b59760fe7d26f7e15206e55465045bf5269ec029.tar.xz
wireguard-openbsd-b59760fe7d26f7e15206e55465045bf5269ec029.zip
Be sure to preserve r3 for syscalls which return 32-bit values.
-rw-r--r--sys/arch/m88k/m88k/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index 79fa4aa348e..8a8c4314be1 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.2 2004/05/07 15:31:13 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.3 2004/06/03 05:17:36 miod Exp $ */
/*
* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -1254,7 +1254,7 @@ m88100_syscall(register_t code, struct trapframe *tf)
ktrsyscall(p, code, callp->sy_argsize, args);
#endif
rval[0] = 0;
- rval[1] = 0;
+ rval[1] = tf->tf_r[3];
#if NSYSTRACE > 0
if (ISSET(p->p_flag, P_SYSTRACE))
error = systrace_redirect(code, p, args, rval);
@@ -1423,7 +1423,7 @@ m88110_syscall(register_t code, struct trapframe *tf)
ktrsyscall(p, code, callp->sy_argsize, args);
#endif
rval[0] = 0;
- rval[1] = 0;
+ rval[1] = tf->tf_r[3];
#if NSYSTRACE > 0
if (ISSET(p->p_flag, P_SYSTRACE))
error = systrace_redirect(code, p, args, rval);