void * __tls_get_addr(tls_index* ti) { Elf_Addr** tls; char *p; sysarch(MIPS_GET_TLS, &tls); p = tls_get_addr_common(tls, ti->ti_module, ti->ti_offset + TLS_DTP_OFFSET); return (p); }
void *__tls_get_addr(unsigned long module, unsigned long offset) { register Elf_Addr** tp __asm__("r13"); return tls_get_addr_common(tp, module, offset); }