m68k: Consolidate NPTL/non versions of clone
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 14 Jun 2014 13:04:16 +0000 (15:04 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 14 Jun 2014 19:37:49 +0000 (21:37 +0200)
ChangeLog
sysdeps/unix/sysv/linux/m68k/clone.S
sysdeps/unix/sysv/linux/m68k/nptl/clone.S [deleted file]

index bb46fd2..5c14adf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
 
+       * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
+       that was previously under [RESET_PID].
+       * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
+
        * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
        * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
        * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
index 764f572..e3480f6 100644 (file)
@@ -22,9 +22,7 @@
 #include <sysdep.h>
 #define _ERRNO_H       1
 #include <bits/errno.h>
-#ifdef RESET_PID
 #include <tls.h>
-#endif
 
 #define CLONE_VM      0x00000100
 #define CLONE_THREAD  0x00010000
@@ -101,7 +99,6 @@ thread_start:
        cfi_startproc
        cfi_undefined (pc)      /* Mark end of stack */
        subl    %fp, %fp        /* terminate the stack frame */
-#ifdef RESET_PID
        /* Check and see if we need to reset the PID.  */
        movel   %d1, %a1
        andl    #CLONE_THREAD, %d1
@@ -121,7 +118,6 @@ gotpid:
        movel   %d0, TID_OFFSET(%a0)
        movel   (%sp)+, %a0
 donepid:
-#endif
        jsr     (%a0)
        movel   %d0, %d1
        movel   #SYS_ify (exit), %d0
diff --git a/sysdeps/unix/sysv/linux/m68k/nptl/clone.S b/sysdeps/unix/sysv/linux/m68k/nptl/clone.S
deleted file mode 100644 (file)
index e7388fe..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#define RESET_PID
-#include "../clone.S"