about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sh
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-05-28 17:23:19 -0700
committerRoland McGrath <roland@hack.frob.com>2014-05-28 17:23:19 -0700
commit0d3b7a190c3abbdce27d4b0b9f16517bf5664099 (patch)
treee54ee5f9f67d861777778971456b68e04517c6a8 /sysdeps/unix/sysv/linux/sh
parent1efe2bd9dcde62506e5ce4f7f8494dfaa1fdf012 (diff)
downloadglibc-0d3b7a190c3abbdce27d4b0b9f16517bf5664099.tar.gz
glibc-0d3b7a190c3abbdce27d4b0b9f16517bf5664099.tar.xz
glibc-0d3b7a190c3abbdce27d4b0b9f16517bf5664099.zip
SH: Consolidate NPTL/non versions of clone
Diffstat (limited to 'sysdeps/unix/sysv/linux/sh')
-rw-r--r--sysdeps/unix/sysv/linux/sh/clone.S7
1 files changed, 1 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/clone.S b/sysdeps/unix/sysv/linux/sh/clone.S
index b7d6101d16..41888269dd 100644
--- a/sysdeps/unix/sysv/linux/sh/clone.S
+++ b/sysdeps/unix/sysv/linux/sh/clone.S
@@ -21,9 +21,8 @@
 #include <sysdep.h>
 #define _ERRNO_H	1
 #include <bits/errno.h>
-#ifdef RESET_PID
 #include <tcb-offsets.h>
-#endif
+
 /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg,
 	     pid_t *ptid, void *tls, pid_t *ctid); */
 
@@ -67,7 +66,6 @@ ENTRY(__clone)
 2:
 	/* terminate the stack frame */
 	mov	#0, r14
-#ifdef RESET_PID
 	mov	r4, r0
 	shlr16	r0
 	tst	#1, r0			// CLONE_THREAD = (1 << 16)
@@ -89,7 +87,6 @@ ENTRY(__clone)
 	add	r1, r2
 	mov.l	r0, @r2
 4:
-#endif
 	/* thread starts */
 	mov.l	@r15, r1
 	jsr	@r1
@@ -120,12 +117,10 @@ ENTRY(__clone)
 	.long	_GLOBAL_OFFSET_TABLE_
 .L3:
 	.long	PLTJMP(C_SYMBOL_NAME(_exit))
-#ifdef RESET_PID
 .Lpidoff:
 	.word	PID - TLS_PRE_TCB_SIZE
 .Ltidoff:
 	.word	TID - TLS_PRE_TCB_SIZE
-#endif
 PSEUDO_END (__clone)
 
 weak_alias (__clone, clone)