From a2b7af5b3cb7378c2f86144887cb1dd8ae0e1dd4 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 13 Nov 2001 06:36:43 +0000 Subject: 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. --- lib/libc/i386/sys/Ovfork.S | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/libc/i386/sys/Ovfork.S') 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 -- cgit v1.1