summaryrefslogtreecommitdiff
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-09-08 18:01:57 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-09-08 18:01:57 +0000
commit6f7f9dbd59f5cab6e10441df4eb4311c26f8d91e (patch)
tree58016209729b42e63e37c25eda23e9303acd9196 /lib/libc/arch
parent077f1b83d8c3bc21bf061786f83673d8fc8e66e7 (diff)
Remove the `let's zero %r2 if %r3 is nonzero' dance. It's been more than 10
years that fork() returns through child_return(), which takes care of zeroing %r2.
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/m88k/sys/fork.S12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libc/arch/m88k/sys/fork.S b/lib/libc/arch/m88k/sys/fork.S
index 7980e8a21b4..3c88e9f65d0 100644
--- a/lib/libc/arch/m88k/sys/fork.S
+++ b/lib/libc/arch/m88k/sys/fork.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fork.S,v 1.7 2013/01/11 21:23:24 miod Exp $ */
+/* $OpenBSD: fork.S,v 1.8 2013/09/08 18:01:56 miod Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -35,12 +35,4 @@
#include "SYS.h"
-/* r2 = pid. r3 = 0 in parent, 1 in child */
-
-SYSCALL(fork)
- bcnd eq0,%r3,parent
- or %r2,%r0,0
- or %r3,%r0,0
-parent:
- jmp %r1 /* pid = fork() */
-END(fork)
+RSYSCALL(fork)