2014-05-13 Roland McGrath <roland@hack.frob.com>
+ * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
+ Deconditionalize the code that was previously under [RESET_PID].
+ * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
+
* sysdeps/generic/exit-thread.h: New file.
* sysdeps/unix/sysv/linux/exit-thread.h: New file.
* include/unistd.h (__exit_thread): Remove declaration.
and invokes a function in the right context after its all over. */
#include <sysdep.h>
+#include <tcb-offsets.h>
#define _ERRNO_H 1
#include <bits/errno.h>
@ do the system call
@ get flags
mov r0, r2
-#ifdef RESET_PID
mov ip, r2
-#endif
@ new sp is already in r1
push {r4, r7}
cfi_adjust_cfa_offset (8)
1:
.fnstart
.cantunwind
-#ifdef RESET_PID
tst ip, #CLONE_THREAD
bne 3f
GET_TLS (lr)
str r0, NEGOFF_OFF1 (r1, TID_OFFSET)
str r0, NEGOFF_OFF2 (r1, PID_OFFSET, TID_OFFSET)
3:
-#endif
@ pick the function arg and call address off the stack and execute
ldr r0, [sp, #4]
ldr ip, [sp], #8