mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
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
This commit is contained in:
parent
00f13cb353
commit
4d29433e33
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86325
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user