summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys/Ovfork.S
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-13 06:36:43 +0000
committerjhb <jhb@FreeBSD.org>2001-11-13 06:36:43 +0000
commita2b7af5b3cb7378c2f86144887cb1dd8ae0e1dd4 (patch)
tree964a51b5a9227c6bb17287fa7b650e23b9349ef0 /lib/libc/i386/sys/Ovfork.S
parentd745b728a2c2707cc3b46c02356335f659c74895 (diff)
downloadFreeBSD-src-a2b7af5b3cb7378c2f86144887cb1dd8ae0e1dd4.zip
FreeBSD-src-a2b7af5b3cb7378c2f86144887cb1dd8ae0e1dd4.tar.gz
The kernel already fixes up %eax for parents that return from fork, so
don't bother manually fixing up %eax for the parent process by testing the value in %edx and zeroing and already zeroed %eax.
Diffstat (limited to 'lib/libc/i386/sys/Ovfork.S')
-rw-r--r--lib/libc/i386/sys/Ovfork.S4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/i386/sys/Ovfork.S b/lib/libc/i386/sys/Ovfork.S
index c69ef0f..af9c4a1 100644
--- a/lib/libc/i386/sys/Ovfork.S
+++ b/lib/libc/i386/sys/Ovfork.S
@@ -57,10 +57,6 @@ ENTRY(__sys_vfork)
lea SYS_vfork,%eax
KERNCALL
jb 2f
- cmpl $0,%edx /* parent process? */
- je 1f /* yes */
- movl $0,%eax
-1:
jmp *%ecx
2:
pushl %ecx
OpenPOWER on IntegriCloud