Home
last modified time | relevance | path

Searched refs:__get_tls (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/platform/bionic/
Dtls.h32 # define __get_tls() ({ void** __val; __asm__("mrs %0, tpidr_el0" : "=r"(__val)); __val; }) macro
34 # define __get_tls() ({ void** __val; __asm__("mrc p15, 0, %0, c13, c0, 3" : "=r"(__val)); __val; }) macro
36 # define __get_tls() ({ void** __val; __asm__("movl %%gs:0, %0" : "=r"(__val)); __val; }) macro
38 # define __get_tls() ({ void** __val; __asm__("mv %0, tp" : "=r"(__val)); __val; }) macro
40 # define __get_tls() ({ void** __val; __asm__("mov %%fs:0, %0" : "=r"(__val)); __val; }) macro
/bionic/libc/bionic/
Dpthread_internal.h217 return reinterpret_cast<bionic_tcb*>(&__get_tls()[MIN_TLS_SLOT]); in __get_bionic_tcb()
222 return static_cast<pthread_internal_t*>(__get_tls()[TLS_SLOT_THREAD_ID]); in __get_thread()
226 return *static_cast<bionic_tls*>(__get_tls()[TLS_SLOT_BIONIC_TLS]); in __get_bionic_tls()
Dlibc_init_dynamic.cpp128 __stack_chk_guard = reinterpret_cast<uintptr_t>(__get_tls()[TLS_SLOT_STACK_GUARD]); in __libc_preinit()
Dndk_cruft.cpp75 void** __get_tls() { in __get_tls() function
77 return __get_tls(); in __get_tls()
/bionic/libc/platform/
Dscudo_platform_tls_slot.h34 return reinterpret_cast<uintptr_t*>(&__get_tls()[TLS_SLOT_SANITIZER]); in getPlatformAllocatorTlsSlot()
/bionic/tests/
D__aeabi_read_tp_test.cpp39 ASSERT_EQ(__aeabi_read_tp(), static_cast<void*>(__get_tls())); in TEST()
Dstack_protector_test.cpp45 void* guard = __get_tls()[TLS_SLOT_STACK_GUARD]; in Check()
Delftls_dl_test.cpp129 ASSERT_EQ(static_cast<void*>(__get_tls()), missing_weak_tls_addr()); in TEST()
131 ASSERT_EQ(static_cast<void*>(__get_tls()), missing_weak_tls_addr()); in TEST()
/bionic/docs/
Delf-tls.md31 architecture-specific thread-pointer ([`__get_tls()`] in Bionic):
53 [`__get_tls()`]: https://android.googlesource.com/platform/bionic/+/7245c082658182c15d2a423fe770388…
180   return (char*)__get_tls() + tls_var_gotoff;
193   return (char*)__get_tls() + R_TLS_TPOFF(tls_var);
257   return (char*)__get_tls() + desc.resolver(desc.arg);
277   return (long)__tls_get_addr(arg) - (long)__get_tls();
313   return (long)addr - (long)__get_tls();
/bionic/libc/
Dlibc.map.txt1691 __get_tls; # arm x86
/bionic/tools/versioner/platforms/
Dlibc.map.txt1691 __get_tls; # arm x86