Lines Matching refs:segbase
363 void **segbase = 0;
365 // sysarch(I386_GET_GSBASE, segbase);
366 __asm __volatile("mov %%gs:0, %0" : "=r" (segbase));
368 // sysarch(AMD64_GET_FSBASE, segbase);
369 __asm __volatile("movq %%fs:0, %0" : "=r" (segbase));
373 return segbase;
393 void** segbase = ThreadSelfSegbase();
396 if (segbase != 0) {
399 // dtv = segbase[1];
400 // dtv[2] = segbase - tls_static_space;
401 void **dtv = (void**) segbase[1];
403 *size = (*addr == 0) ? 0 : ((uptr) segbase[0] - (uptr) dtv[2]);