Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 13 of 13) sorted by relevance

/bionic/libc/arch-x86/bionic/
D__get_tls.c34 void* tls; in __get_tls() local
35 asm ( " movl %%gs:0, %0" : "=r"(tls) ); in __get_tls()
36 return tls; in __get_tls()
Dclone.S10 # save tls
/bionic/libc/arch-mips/bionic/
D__get_tls.c30 register void *tls asm("v1"); in __get_tls()
35 : "=r"(tls)); in __get_tls()
36 return tls; in __get_tls()
Dclone.S53 # sw $a1+16,8($a1) # tls
/bionic/libc/bionic/
Dpthread_create.cpp62 thread->tls[i] = NULL; in __init_tls()
66 thread->tls[TLS_SLOT_SELF] = thread->tls; in __init_tls()
67 thread->tls[TLS_SLOT_THREAD_ID] = thread; in __init_tls()
69 thread->tls[TLS_SLOT_STACK_GUARD] = (void*) __stack_chk_guard; in __init_tls()
71 __set_tls(thread->tls); in __init_tls()
88 extern "C" void __thread_entry(void* (*func)(void*), void* arg, void** tls) { in __thread_entry() argument
93 pthread_mutex_t* start_mutex = (pthread_mutex_t*) &tls[TLS_SLOT_SELF]; in __thread_entry()
97 pthread_internal_t* thread = (pthread_internal_t*) tls[TLS_SLOT_THREAD_ID]; in __thread_entry()
98 thread->tls = tls; in __thread_entry()
207 …void** tls = (void**)((uint8_t*)(thread->attr.stack_base) + thread->attr.stack_size - BIONIC_TLS_S… in pthread_create() local
[all …]
Dlibc_init_common.cpp100 static void* tls[BIONIC_TLS_SLOTS]; in __libc_init_tls() local
103 thread.tls = tls; in __libc_init_tls()
108 tls[TLS_SLOT_BIONIC_PREINIT] = &args; in __libc_init_tls()
Dlibc_init_dynamic.cpp68 void* tls = const_cast<void*>(__get_tls()); in __libc_preinit() local
69 …KernelArgumentBlock** args_slot = &reinterpret_cast<KernelArgumentBlock**>(tls)[TLS_SLOT_BIONIC_PR… in __libc_preinit()
Dpthread_key.cpp136 void** tls = (void**)__get_tls(); in CleanAll() local
144 void* data = tls[key]; in CleanAll()
155 tls[key] = NULL; in CleanAll()
221 if ((t->attr.flags & PTHREAD_ATTR_FLAG_ZOMBIE) || t->tls == NULL) { in pthread_key_delete()
225 t->tls[key] = NULL; in pthread_key_delete()
Dpthread_internals.cpp67 void** tls = reinterpret_cast<void**>(const_cast<void*>(__get_tls())); in __get_thread() local
68 return reinterpret_cast<pthread_internal_t*>(tls[TLS_SLOT_THREAD_ID]); in __get_thread()
Dpthread_internal.h48 void** tls; /* thread-local storage area */ member
Dpthread.c130 thread->tls = NULL; in pthread_exit()
/bionic/linker/
Ddlfcn.cpp34 void* tls = const_cast<void*>(__get_tls()); in __bionic_set_dlerror() local
35 char** dlerror_slot = &reinterpret_cast<char**>(tls)[TLS_SLOT_DLERROR]; in __bionic_set_dlerror()
/bionic/libc/arch-arm/bionic/
Dclone.S71 # pid_t *pid, void *tls, pid_t *ctid,