Searched refs:segbase (Results 1 – 3 of 3) sorted by relevance
322 void **segbase = 0; in ThreadSelfSegbase() local325 __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()
401 void **segbase = 0; in ThreadSelfSegbase() local404 __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()
540 uptr segbase = 0; in TlsBaseAddr() local542 asm("movq %%gs:0,%0" : "=r"(segbase)); in TlsBaseAddr()544 asm("movl %%gs:0,%0" : "=r"(segbase)); in TlsBaseAddr()546 return segbase; in TlsBaseAddr()