diff options
author | jhb <jhb@FreeBSD.org> | 2001-11-13 16:58:43 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-11-13 16:58:43 +0000 |
commit | 28f45ce3d007a02044407c59d8fa8d71b123779d (patch) | |
tree | 05c575cab2035579e3e29e612580acdf81f9a785 | |
parent | 7e0d456cdf234ebd9cefd3a5a9a969c32a5a3343 (diff) | |
download | FreeBSD-src-28f45ce3d007a02044407c59d8fa8d71b123779d.zip FreeBSD-src-28f45ce3d007a02044407c59d8fa8d71b123779d.tar.gz |
Cleanups after previous change:
- Renumber labels since the previous revision removed one.
- Remove useless and wrong comment.
- Repeating the function name is just redundant.
- The previous revision made the comment about %edx useless.
- The comment about %eax was wrong (but did explain why %eax used to be
fixed up).
Submitted by: bde
-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)) |