]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/i386/clone.S
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / i386 / clone.S
index 25f2a9c3409188f43f830e45192995e06df80e2a..9d47a3c5161271bb45b407d62cf24832f41332d7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Richard Henderson (rth@tamu.edu)
 
@@ -14,7 +14,7 @@
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 /* clone() is even more special than fork() as it mucks with stacks
    and invokes a function in the right context after its all over.  */
@@ -39,8 +39,6 @@
 #define __NR_clone 120
 #define SYS_clone 120
 
-#define CLONE_VM       0x00000100
-
         .text
 ENTRY (__clone)
        /* Sanity check arguments.  */
@@ -107,9 +105,6 @@ L(thread_start):
        cfi_undefined (eip);
        /* Note: %esi is zero.  */
        movl    %esi,%ebp       /* terminate the stack frame */
-       testl   $CLONE_VM, %edi
-       je      L(newpid)
-L(haspid):
        call    *%ebx
 #ifdef PIC
        call    L(here)
@@ -121,18 +116,6 @@ L(here):
        movl    $SYS_ify(exit), %eax
        ENTER_KERNEL
 
-       .subsection 2
-L(newpid):
-       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)