/freebsd-11-stable/lib/libc/arm/ |
H A D | static_tls.h | 39 uintptr_t tlsbase; local 42 tlsbase = *(uintptr_t *)ARM_TP_ADDRESS; 44 __asm __volatile("mrc p15, 0, %0, c13, c0, 3" : "=r" (tlsbase)); 47 tlsbase += offset; 48 return (tlsbase);
|
/freebsd-11-stable/lib/libc/mips/ |
H A D | static_tls.h | 41 uintptr_t tlsbase; local 49 : "=r" (tlsbase)); 50 tlsbase -= TLS_TP_OFFSET + TLS_TCB_SIZE; 57 : "=r" (tlsbase)); 58 tlsbase -= TLS_TP_OFFSET + TLS_TCB_SIZE; 60 tlsbase += offset; 61 return (tlsbase);
|
/freebsd-11-stable/lib/libc/powerpc/ |
H A D | static_tls.h | 39 uintptr_t tlsbase; local 41 __asm __volatile("mr %0,2" : "=r"(tlsbase)); 42 tlsbase += offset - 0x7008; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libc/powerpc64/ |
H A D | static_tls.h | 39 uintptr_t tlsbase; local 41 __asm __volatile("mr %0,13" : "=r"(tlsbase)); 42 tlsbase += offset - 0x7010; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libc/riscv/ |
H A D | static_tls.h | 39 uintptr_t tlsbase; local 41 __asm __volatile("mv %0, tp" : "=r"(tlsbase)); 42 tlsbase += offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libc/aarch64/ |
H A D | static_tls.h | 39 uintptr_t tlsbase; local 41 __asm __volatile("mrs %x0, tpidr_el0" : "=r" (tlsbase)); 42 tlsbase += offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libc/amd64/ |
H A D | static_tls.h | 39 uintptr_t tlsbase; local 41 __asm __volatile("movq %%fs:0, %0" : "=r" (tlsbase)); 42 tlsbase -= offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libc/i386/ |
H A D | static_tls.h | 39 uintptr_t tlsbase; local 41 __asm __volatile("movl %%gs:0, %0" : "=r" (tlsbase)); 42 tlsbase -= offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/aarch64/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase += offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/amd64/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase -= offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/arm/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase += offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/i386/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase -= offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/mips/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase += offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/powerpc/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase += offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/riscv/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase += offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libthr/arch/sparc64/include/ |
H A D | pthread_tls.h | 39 uintptr_t tlsbase; local 41 tlsbase = (uintptr_t)thr->tcb; 42 tlsbase -= offset; 43 return (tlsbase);
|
/freebsd-11-stable/lib/libc/sparc64/ |
H A D | static_tls.h | 39 register uintptr_t tlsbase __asm("%g7"); 41 return (tlsbase + offset);
|
/freebsd-11-stable/sys/mips/mips/ |
H A D | sys_machdep.c | 55 void *tlsbase; local 62 tlsbase = td->td_md.md_tls; 63 error = copyout(&tlsbase, uap->parms, sizeof(tlsbase));
|
H A D | freebsd32_machdep.c | 471 int32_t tlsbase; local 478 tlsbase = (int32_t)(intptr_t)td->td_md.md_tls; 479 error = copyout(&tlsbase, uap->parms, sizeof(tlsbase));
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | elf_utils.c | 92 uintptr_t tlsbase; local 94 tlsbase = _libc_get_static_tls_base(offset); 95 memcpy((void *)tlsbase, src, len); 96 memset((char *)tlsbase + len, 0, total_len - len);
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_list.c | 368 thr_distribute_static_tls(uintptr_t tlsbase, void *src, size_t len, argument 372 memcpy((void *)tlsbase, src, len); 373 memset((char *)tlsbase + len, 0, total_len - len); 381 uintptr_t tlsbase; local 384 tlsbase = _libc_get_static_tls_base(offset); 385 thr_distribute_static_tls(tlsbase, src, len, total_len); 391 tlsbase = _get_static_tls_base(thrd, offset); 392 thr_distribute_static_tls(tlsbase, src, len, total_len);
|
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | elf32-i386.c | 2111 struct elf_link_hash_entry *tlsbase; 2113 tlsbase = elf_link_hash_lookup (elf_hash_table (info), 2117 if (tlsbase && tlsbase->type == STT_TLS) 2128 tlsbase = (struct elf_link_hash_entry *)bh; 2129 tlsbase->def_regular = 1; 2130 tlsbase->other = STV_HIDDEN; 2131 (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); 2109 struct elf_link_hash_entry *tlsbase; local
|
H A D | elf64-x86-64.c | 1971 struct elf_link_hash_entry *tlsbase; 1973 tlsbase = elf_link_hash_lookup (elf_hash_table (info), 1977 if (tlsbase && tlsbase->type == STT_TLS) 1988 tlsbase = (struct elf_link_hash_entry *)bh; 1989 tlsbase->def_regular = 1; 1990 tlsbase->other = STV_HIDDEN; 1991 (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); 1969 struct elf_link_hash_entry *tlsbase; local
|