1 #include <sys/linux-syscalls.h>
6 * int __pthread_clone(int (*fn)(void*), void *tls, int flags,
10 .type __pthread_clone, @function
18 # insert arguments onto the child stack
26 movl $__NR_clone, %eax
31 # an error occured, set errno and return -1
40 # we're in the child thread now, call __thread_entry
41 # with the appropriate arguments on the child stack
42 # we already placed most of them
52 /* XXX: TODO: Add __bionic_clone here
53 * See bionic/bionic_clone.c and arch-arm/bionic/clone.S