diff options
-rw-r--r-- | lib/libc/amd64/sys/vfork.S | 11 | ||||
-rw-r--r-- | lib/libc/i386/sys/Ovfork.S | 11 |
2 files changed, 4 insertions, 18 deletions
diff --git a/lib/libc/amd64/sys/vfork.S b/lib/libc/amd64/sys/vfork.S index af9c4a1..76c314c 100644 --- a/lib/libc/amd64/sys/vfork.S +++ b/lib/libc/amd64/sys/vfork.S @@ -41,13 +41,6 @@ #include "SYS.h" -/* - * pid = vfork(); - * - * %edx == 0 in parent process, %edx == 1 in child process. - * %eax == pid of child in parent, %eax == pid of parent in child. - * - */ .weak _vfork .set _vfork,__sys_vfork .weak vfork @@ -56,9 +49,9 @@ ENTRY(__sys_vfork) popl %ecx /* my rta into ecx */ lea SYS_vfork,%eax KERNCALL - jb 2f + jb 1f jmp *%ecx -2: +1: pushl %ecx PIC_PROLOGUE jmp PIC_PLT(HIDENAME(cerror)) diff --git a/lib/libc/i386/sys/Ovfork.S b/lib/libc/i386/sys/Ovfork.S index af9c4a1..76c314c 100644 --- a/lib/libc/i386/sys/Ovfork.S +++ b/lib/libc/i386/sys/Ovfork.S @@ -41,13 +41,6 @@ #include "SYS.h" -/* - * pid = vfork(); - * - * %edx == 0 in parent process, %edx == 1 in child process. - * %eax == pid of child in parent, %eax == pid of parent in child. - * - */ .weak _vfork .set _vfork,__sys_vfork .weak vfork @@ -56,9 +49,9 @@ ENTRY(__sys_vfork) popl %ecx /* my rta into ecx */ lea SYS_vfork,%eax KERNCALL - jb 2f + jb 1f jmp *%ecx -2: +1: pushl %ecx PIC_PROLOGUE jmp PIC_PLT(HIDENAME(cerror)) |