Searched refs:tls (Results 1 - 11 of 11) sorted by relevance

/bionic/libc/arch-arm64/bionic/
H A D__set_tls.c31 __LIBC_HIDDEN__ void __set_tls(void* tls) { argument
32 asm("msr tpidr_el0, %0" : : "r" (tls));
/bionic/libc/bionic/
H A Dstrerror.cpp42 bionic_tls& tls = __get_bionic_tls(); local
43 result = tls.strerror_buf;
44 strerror_r(error_number, result, sizeof(tls.strerror_buf));
H A Dstrsignal.cpp43 bionic_tls& tls = __get_bionic_tls(); local
44 return const_cast<char*>(__strsignal(signal_number, tls.strsignal_buf, sizeof(tls.strsignal_buf)));
H A Dlibc_init_dynamic.cpp89 void** tls = __get_tls(); local
90 KernelArgumentBlock** args_slot = &reinterpret_cast<KernelArgumentBlock**>(tls)[TLS_SLOT_BIONIC_PREINIT];
99 __stack_chk_guard = reinterpret_cast<uintptr_t>(tls[TLS_SLOT_STACK_GUARD]);
H A D__libc_init_main_thread.cpp74 __set_tls(main_thread.tls);
107 main_thread.tls[TLS_SLOT_BIONIC_PREINIT] = &args;
H A Dmntent.cpp35 auto& tls = __get_bionic_tls(); local
36 return getmntent_r(fp, &tls.mntent_buf, tls.mntent_strings, sizeof(tls.mntent_strings));
H A Dpthread_internal.h108 void* tls[BIONIC_TLS_SLOTS]; member in class:pthread_internal_t
134 void** tls = __get_tls(); local
135 if (__predict_true(tls)) {
136 return reinterpret_cast<pthread_internal_t*>(tls[TLS_SLOT_THREAD_ID]);
H A Dpty.cpp55 bionic_tls& tls = __get_bionic_tls(); local
56 char* buf = tls.ptsname_buf;
57 int error = ptsname_r(fd, buf, sizeof(tls.ptsname_buf));
82 bionic_tls& tls = __get_bionic_tls(); local
83 char* buf = tls.ttyname_buf;
84 int error = ttyname_r(fd, buf, sizeof(tls.ttyname_buf));
H A Dpthread_create.cpp56 thread->tls[TLS_SLOT_SELF] = thread->tls;
57 thread->tls[TLS_SLOT_THREAD_ID] = thread;
86 thread->tls[TLS_SLOT_STACK_GUARD] = reinterpret_cast<void*>(__stack_chk_guard);
304 void* tls = reinterpret_cast<void*>(thread->tls); local
309 __init_user_desc(&tls_descriptor, false, tls);
310 tls = &tls_descriptor;
312 int rc = clone(__pthread_start, child_stack, flags, thread, &(thread->tid), tls, &(thread->tid));
H A Dclone.cpp40 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg);
/bionic/libc/arch-x86/bionic/
H A D__bionic_clone.S3 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg);
19 movl 28(%esp), %esi # tls

Completed in 763 milliseconds