about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/mips/clone.S
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-06-25 14:50:58 -0700
committerRoland McGrath <roland@hack.frob.com>2014-06-25 14:50:58 -0700
commit7c1c1d8ec3a7aefd568a4e12825e0679e3dad5de (patch)
tree3f5caf4f0bdfc6b1519892fae75f95469e1111f5 /sysdeps/unix/sysv/linux/mips/clone.S
parent74385da564a92fc441a7d7f3ed7a4295b74bfdbf (diff)
downloadglibc-7c1c1d8ec3a7aefd568a4e12825e0679e3dad5de.tar.gz
glibc-7c1c1d8ec3a7aefd568a4e12825e0679e3dad5de.tar.xz
glibc-7c1c1d8ec3a7aefd568a4e12825e0679e3dad5de.zip
MIPS: Consolidate NPTL/non versions of clone
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/clone.S')
-rw-r--r--sysdeps/unix/sysv/linux/mips/clone.S8
1 files changed, 0 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/clone.S b/sysdeps/unix/sysv/linux/mips/clone.S
index d3fd80f993..286a6b946a 100644
--- a/sysdeps/unix/sysv/linux/mips/clone.S
+++ b/sysdeps/unix/sysv/linux/mips/clone.S
@@ -23,9 +23,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
@@ -69,9 +67,7 @@ NESTED(__clone,4*SZREG,sp)
 	PTR_SUBU	a1,32		/* Reserve argument save space.  */
 	PTR_S		a0,0(a1)	/* Save function pointer.  */
 	PTR_S		a3,PTRSIZE(a1)	/* Save argument pointer.  */
-#ifdef RESET_PID
 	LONG_S		a2,(PTRSIZE*2)(a1)	/* Save clone flags.  */
-#endif
 
 	move		a0,a2
 
@@ -134,13 +130,11 @@ L(thread_start):
 	SAVE_GP (GPOFF)
 	/* The stackframe has been created on entry of clone().  */
 
-#ifdef RESET_PID
 	/* Check and see if we need to reset the PID.  */
 	LONG_L		a0,(PTRSIZE*2)(sp)
 	and		a1,a0,CLONE_THREAD
 	beqz		a1,L(restore_pid)
 L(donepid):
-#endif
 
 	/* Restore the arg for user's function.  */
 	PTR_L		t9,0(sp)	/* Function pointer.  */
@@ -158,7 +152,6 @@ L(donepid):
 	jal		_exit
 #endif
 
-#ifdef RESET_PID
 L(restore_pid):
 	and		a1,a0,CLONE_VM
 	li		v0,-1
@@ -170,7 +163,6 @@ L(gotpid):
 	INT_S		v0,PID_OFFSET(v1)
 	INT_S		v0,TID_OFFSET(v1)
 	b		L(donepid)
-#endif
 
 	END(__thread_start)