diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/clone.S')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/clone.S | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S index 7d818c1e46..e3b0cf18f7 100644 --- a/sysdeps/unix/sysv/linux/i386/clone.S +++ b/sysdeps/unix/sysv/linux/i386/clone.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1996-2016 Free Software Foundation, Inc. +/* Copyright (C) 1996-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson (rth@tamu.edu) @@ -39,9 +39,6 @@ #define __NR_clone 120 #define SYS_clone 120 -#define CLONE_VM 0x00000100 -#define CLONE_THREAD 0x00010000 - .text ENTRY (__clone) /* Sanity check arguments. */ @@ -108,9 +105,6 @@ L(thread_start): cfi_undefined (eip); /* Note: %esi is zero. */ movl %esi,%ebp /* terminate the stack frame */ - testl $CLONE_THREAD, %edi - je L(newpid) -L(haspid): call *%ebx #ifdef PIC call L(here) @@ -122,21 +116,7 @@ L(here): movl $SYS_ify(exit), %eax ENTER_KERNEL - .subsection 2 -L(newpid): - testl $CLONE_VM, %edi - movl $-1, %eax - jne L(nomoregetpid) - movl $SYS_ify(getpid), %eax - ENTER_KERNEL -L(nomoregetpid): - movl %eax, %gs:PID - movl %eax, %gs:TID - jmp L(haspid) - .previous - cfi_endproc; - - cfi_startproc PSEUDO_END (__clone) +libc_hidden_def (__clone) weak_alias (__clone, clone) |