summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2022-11-02 07:20:09 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2022-11-02 07:20:09 +0000
commit25e0991fac3fb544cdf18903c285de7e16343f0b (patch)
tree519f742e155fa5a8ff12898cb846cf6aa9c9c84e /sys/arch/m88k
parent31c7022553963522dee5f0765842216773d2cfe2 (diff)
Clean up more ancient history: since 2015 the libc stubs for
fork/vfork/__tfork haven't cared about the second return register. So, stop setting retval[1] in kern_fork.c and stop setting the second return register in the MD child_return() routines. With the above, we have no multi-register return values on LP64, so stop touching that register in the trapframe on those archs. testing miod@ and aoyama@ ok miod@
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/trap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index b1956c8ef49..d2937dbc415 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.122 2022/08/12 08:31:06 jsg Exp $ */
+/* $OpenBSD: trap.c,v 1.123 2022/11/02 07:20:07 guenther Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -1397,7 +1397,6 @@ child_return(arg)
tf = (struct trapframe *)USER_REGS(p);
tf->tf_r[2] = 0;
- tf->tf_r[3] = 0;
tf->tf_epsr &= ~PSR_C;
/* skip br instruction as in syscall() */
#ifdef M88100