Home
last modified time | relevance | path

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

/aosp12/bionic/libc/platform/bionic/
H A 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__("mov %%fs:0, %0" : "=r"(__val)); __val; }) macro
/aosp12/bionic/libc/bionic/
H A Dpthread_internal.h194 return reinterpret_cast<bionic_tcb*>(&__get_tls()[MIN_TLS_SLOT]); in __get_bionic_tcb()
199 return static_cast<pthread_internal_t*>(__get_tls()[TLS_SLOT_THREAD_ID]); in __get_thread()
203 return *static_cast<bionic_tls*>(__get_tls()[TLS_SLOT_BIONIC_TLS]); in __get_bionic_tls()
H A Dndk_cruft.cpp75 void** __get_tls() { in __get_tls() function
77 return __get_tls(); in __get_tls()
H A Dlibc_init_dynamic.cpp126 __stack_chk_guard = reinterpret_cast<uintptr_t>(__get_tls()[TLS_SLOT_STACK_GUARD]); in __libc_preinit()
/aosp12/bionic/libc/platform/
H A Dscudo_platform_tls_slot.h34 return reinterpret_cast<uintptr_t*>(&__get_tls()[TLS_SLOT_SANITIZER]); in getPlatformAllocatorTlsSlot()
/aosp12/bionic/tests/
H A D__aeabi_read_tp_test.cpp39 ASSERT_EQ(__aeabi_read_tp(), static_cast<void*>(__get_tls())); in TEST()
H A Dstack_protector_test.cpp45 void* guard = __get_tls()[TLS_SLOT_STACK_GUARD]; in Check()
H A Delftls_dl_test.cpp127 ASSERT_EQ(static_cast<void*>(__get_tls()), missing_weak_tls_addr()); in TEST()
129 ASSERT_EQ(static_cast<void*>(__get_tls()), missing_weak_tls_addr()); in TEST()
/aosp12/art/runtime/
H A Dthread-current-inl.h37 void* thread = __get_tls()[TLS_SLOT_ART_THREAD_SELF]; in Current()
H A Dthread_list.cc1352 __get_tls()[TLS_SLOT_ART_THREAD_SELF] = nullptr; in Unregister()
H A Dthread.cc953 __get_tls()[TLS_SLOT_ART_THREAD_SELF] = this; in Init()
2210 __get_tls()[TLS_SLOT_ART_THREAD_SELF] = self; in ThreadExitCallback()
/aosp12/frameworks/native/opengl/libs/
H A Dhooks.h85 volatile void *tls_base = __get_tls(); in get_tls_hooks()
/aosp12/frameworks/libs/native_bridge_support/linker/
H A D__libc_init_main_thread.cpp53 __get_tls()[TLS_SLOT_BIONIC_TLS] = __get_thread()->bionic_tls; in __libc_init_main_thread_late()
/aosp12/bionic/docs/
H A 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();
/aosp12/bionic/libc/
H A Dlibc.map.txt1671 __get_tls; # arm x86
/aosp12/bionic/tools/versioner/platforms/
H A Dlibc.map.txt1671 __get_tls; # arm x86