Home
last modified time | relevance | path

Searched refs:segbase (Results 1 – 3 of 3) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cc322 void **segbase = 0; in ThreadSelfSegbase() local
325 __asm __volatile("mov %%gs:0, %0" : "=r" (segbase)); in ThreadSelfSegbase()
328 __asm __volatile("movq %%fs:0, %0" : "=r" (segbase)); in ThreadSelfSegbase()
332 return segbase; in ThreadSelfSegbase()
356 void** segbase = ThreadSelfSegbase(); in GetTls()
359 if (segbase != 0) { in GetTls()
364 void **dtv = (void**) segbase[1]; in GetTls()
366 *size = (*addr == 0) ? 0 : ((uptr) segbase[0] - (uptr) dtv[2]); in GetTls()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cpp401 void **segbase = 0; in ThreadSelfSegbase() local
404 __asm __volatile("mov %%gs:0, %0" : "=r" (segbase)); in ThreadSelfSegbase()
407 __asm __volatile("movq %%fs:0, %0" : "=r" (segbase)); in ThreadSelfSegbase()
411 return segbase; in ThreadSelfSegbase()
483 void** segbase = ThreadSelfSegbase(); in GetTls()
486 if (segbase != 0) { in GetTls()
491 void **dtv = (void**) segbase[1]; in GetTls()
493 *size = (*addr == 0) ? 0 : ((uptr) segbase[0] - (uptr) dtv[2]); in GetTls()
Dsanitizer_mac.cpp540 uptr segbase = 0; in TlsBaseAddr() local
542 asm("movq %%gs:0,%0" : "=r"(segbase)); in TlsBaseAddr()
544 asm("movl %%gs:0,%0" : "=r"(segbase)); in TlsBaseAddr()
546 return segbase; in TlsBaseAddr()