diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-06-03 05:17:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-06-03 05:17:37 +0000 |
commit | b78f2d16680a52423f392938f4be58ba6a159296 (patch) | |
tree | 4dffa9d6844e15b561022384498d252020d14269 /sys/arch | |
parent | d293392a0a50360e293d5d61ea19288efdeb3825 (diff) |
Be sure to preserve r3 for syscalls which return 32-bit values.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/m88k/m88k/trap.c | 6 |
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); |