diff options
author | Elliott Hughes <enh@google.com> | 2013-02-14 18:59:37 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-02-15 12:08:59 -0800 |
commit | 40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e (patch) | |
tree | 19eef7fcbba616a52bd37f4c83ece3e918b25445 /libc/arch-arm/bionic/clone.S | |
parent | 3e3b239d2be0c5a92e91385f4f10b8f7da8d2837 (diff) | |
download | bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.zip bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.tar.gz bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.tar.bz2 |
Fix the pthread_setname_np test.
Fix the pthread_setname_np test to take into account that emulator kernels are
so old that they don't support setting the name of other threads.
The CLONE_DETACHED thread is obsolete since 2.5 kernels.
Rename kernel_id to tid.
Fix the signature of __pthread_clone.
Clean up the clone and pthread_setname_np implementations slightly.
Change-Id: I16c2ff8845b67530544bbda9aa6618058603066d
Diffstat (limited to 'libc/arch-arm/bionic/clone.S')
-rw-r--r-- | libc/arch-arm/bionic/clone.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/arch-arm/bionic/clone.S b/libc/arch-arm/bionic/clone.S index 39bd79d..13bc7d7 100644 --- a/libc/arch-arm/bionic/clone.S +++ b/libc/arch-arm/bionic/clone.S @@ -29,10 +29,10 @@ #include <machine/asm.h> #include <sys/linux-syscalls.h> -// int __pthread_clone(int (*fn)(void*), void* child_stack, int flags, void* arg); +// int __pthread_clone(void* (*fn)(void*), void* child_stack, int flags, void* arg); ENTRY(__pthread_clone) # Copy the args onto the new stack. - stmdb r1!, {r0, r3} + stmdb r1!, {r0, r3} # The sys_clone system call only takes two arguments: 'flags' and 'child_stack'. # 'child_stack' is already in r1, but we need to move 'flags' into position. |