diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-03-31 04:32:03 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-03-31 04:32:03 +0000 |
commit | 086157d1e3625c713abad9d6345358ede7b96218 (patch) | |
tree | 6b505aa6a76935423ed18be22a36b5960cb385c0 /lib/libc/arch/m88k | |
parent | 38a3209966177abac13e955fc570f7fa57312ce0 (diff) |
Simplify fork/vfork logic: the kernel has handled returning zero in the child
for a long time, so there's no need to test the second return register here
in the asm stub.
ok and testing of many archs by krw@ miod@
Diffstat (limited to 'lib/libc/arch/m88k')
-rw-r--r-- | lib/libc/arch/m88k/sys/Ovfork.S | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/libc/arch/m88k/sys/Ovfork.S b/lib/libc/arch/m88k/sys/Ovfork.S index d2b6c3c3027..916f563de92 100644 --- a/lib/libc/arch/m88k/sys/Ovfork.S +++ b/lib/libc/arch/m88k/sys/Ovfork.S @@ -1,4 +1,4 @@ -/* $OpenBSD: Ovfork.S,v 1.9 2013/01/11 21:23:24 miod Exp $ */ +/* $OpenBSD: Ovfork.S,v 1.10 2015/03/31 04:32:02 guenther 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(vfork) - bcnd eq0,%r3,parent - or %r2,%r0,0 - or %r3,%r0,0 -parent: - jmp %r1 /* pid = vfork() */ -END(vfork) +RSYSCALL(vfork) |