| /freebsd-12.1/lib/libc/mips/ |
| H A D | static_tls.h | 41 uintptr_t tlsbase; in _libc_get_static_tls_base() local 49 : "=r" (tlsbase)); in _libc_get_static_tls_base() 50 tlsbase -= TLS_TP_OFFSET + TLS_TCB_SIZE; in _libc_get_static_tls_base() 57 : "=r" (tlsbase)); in _libc_get_static_tls_base() 58 tlsbase -= TLS_TP_OFFSET + TLS_TCB_SIZE; in _libc_get_static_tls_base() 60 tlsbase += offset; in _libc_get_static_tls_base() 61 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libc/arm/ |
| H A D | static_tls.h | 39 uintptr_t tlsbase; in _libc_get_static_tls_base() local 42 tlsbase = *(uintptr_t *)ARM_TP_ADDRESS; in _libc_get_static_tls_base() 44 __asm __volatile("mrc p15, 0, %0, c13, c0, 3" : "=r" (tlsbase)); in _libc_get_static_tls_base() 47 tlsbase += offset; in _libc_get_static_tls_base() 48 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libc/riscv/ |
| H A D | static_tls.h | 39 uintptr_t tlsbase; in _libc_get_static_tls_base() local 41 __asm __volatile("mv %0, tp" : "=r"(tlsbase)); in _libc_get_static_tls_base() 42 tlsbase += offset; in _libc_get_static_tls_base() 43 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libc/i386/ |
| H A D | static_tls.h | 39 uintptr_t tlsbase; in _libc_get_static_tls_base() local 41 __asm __volatile("movl %%gs:0, %0" : "=r" (tlsbase)); in _libc_get_static_tls_base() 42 tlsbase -= offset; in _libc_get_static_tls_base() 43 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libc/amd64/ |
| H A D | static_tls.h | 39 uintptr_t tlsbase; in _libc_get_static_tls_base() local 41 __asm __volatile("movq %%fs:0, %0" : "=r" (tlsbase)); in _libc_get_static_tls_base() 42 tlsbase -= offset; in _libc_get_static_tls_base() 43 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libc/aarch64/ |
| H A D | static_tls.h | 39 uintptr_t tlsbase; in _libc_get_static_tls_base() local 41 __asm __volatile("mrs %x0, tpidr_el0" : "=r" (tlsbase)); in _libc_get_static_tls_base() 42 tlsbase += offset; in _libc_get_static_tls_base() 43 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libc/powerpc64/ |
| H A D | static_tls.h | 39 uintptr_t tlsbase; in _libc_get_static_tls_base() local 41 __asm __volatile("mr %0,13" : "=r"(tlsbase)); in _libc_get_static_tls_base() 42 tlsbase += offset - 0x7010; in _libc_get_static_tls_base() 43 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libc/powerpc/ |
| H A D | static_tls.h | 39 uintptr_t tlsbase; in _libc_get_static_tls_base() local 41 __asm __volatile("mr %0,2" : "=r"(tlsbase)); in _libc_get_static_tls_base() 42 tlsbase += offset - 0x7008; in _libc_get_static_tls_base() 43 return (tlsbase); in _libc_get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/aarch64/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase += offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/arm/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase += offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/amd64/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase -= offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/i386/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase -= offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/powerpc/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase += offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/riscv/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase += offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/sparc64/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase -= offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/lib/libthr/arch/mips/include/ |
| H A D | pthread_tls.h | 39 uintptr_t tlsbase; in _get_static_tls_base() local 41 tlsbase = (uintptr_t)thr->tcb; in _get_static_tls_base() 42 tlsbase += offset; in _get_static_tls_base() 43 return (tlsbase); in _get_static_tls_base()
|
| /freebsd-12.1/sys/mips/mips/ |
| H A D | sys_machdep.c | 61 void *tlsbase; in sysarch() local 79 tlsbase = td->td_md.md_tls; in sysarch() 80 error = copyout(&tlsbase, uap->parms, sizeof(tlsbase)); in sysarch()
|
| H A D | freebsd32_machdep.c | 474 int32_t tlsbase; in freebsd32_sysarch() local 481 tlsbase = (int32_t)(intptr_t)td->td_md.md_tls; in freebsd32_sysarch() 482 error = copyout(&tlsbase, uap->parms, sizeof(tlsbase)); in freebsd32_sysarch()
|
| /freebsd-12.1/lib/libthr/thread/ |
| H A D | thr_list.c | 370 thr_distribute_static_tls(uintptr_t tlsbase, void *src, size_t len, in thr_distribute_static_tls() argument 374 memcpy((void *)tlsbase, src, len); in thr_distribute_static_tls() 375 memset((char *)tlsbase + len, 0, total_len - len); in thr_distribute_static_tls() 383 uintptr_t tlsbase; in __pthread_distribute_static_tls() local 386 tlsbase = _libc_get_static_tls_base(offset); in __pthread_distribute_static_tls() 387 thr_distribute_static_tls(tlsbase, src, len, total_len); in __pthread_distribute_static_tls() 393 tlsbase = _get_static_tls_base(thrd, offset); in __pthread_distribute_static_tls() 394 thr_distribute_static_tls(tlsbase, src, len, total_len); in __pthread_distribute_static_tls()
|
| /freebsd-12.1/lib/libc/gen/ |
| H A D | elf_utils.c | 107 uintptr_t tlsbase; in __libc_distribute_static_tls() local 109 tlsbase = _libc_get_static_tls_base(offset); in __libc_distribute_static_tls() 110 memcpy((void *)tlsbase, src, len); in __libc_distribute_static_tls() 111 memset((char *)tlsbase + len, 0, total_len - len); in __libc_distribute_static_tls()
|
| /freebsd-12.1/lib/libc/sparc64/ |
| H A D | static_tls.h | 39 register uintptr_t tlsbase __asm("%g7"); in _libc_get_static_tls_base() 41 return (tlsbase + offset); in _libc_get_static_tls_base()
|
| /freebsd-12.1/contrib/binutils/bfd/ |
| H A D | elf64-x86-64.c | 1969 struct elf_link_hash_entry *tlsbase; in elf64_x86_64_always_size_sections() local 1971 tlsbase = elf_link_hash_lookup (elf_hash_table (info), in elf64_x86_64_always_size_sections() 1975 if (tlsbase && tlsbase->type == STT_TLS) in elf64_x86_64_always_size_sections() 1986 tlsbase = (struct elf_link_hash_entry *)bh; in elf64_x86_64_always_size_sections() 1987 tlsbase->def_regular = 1; in elf64_x86_64_always_size_sections() 1988 tlsbase->other = STV_HIDDEN; in elf64_x86_64_always_size_sections() 1989 (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); in elf64_x86_64_always_size_sections()
|
| H A D | elf32-i386.c | 2109 struct elf_link_hash_entry *tlsbase; in elf_i386_always_size_sections() local 2111 tlsbase = elf_link_hash_lookup (elf_hash_table (info), in elf_i386_always_size_sections() 2115 if (tlsbase && tlsbase->type == STT_TLS) in elf_i386_always_size_sections() 2126 tlsbase = (struct elf_link_hash_entry *)bh; in elf_i386_always_size_sections() 2127 tlsbase->def_regular = 1; in elf_i386_always_size_sections() 2128 tlsbase->other = STV_HIDDEN; in elf_i386_always_size_sections() 2129 (*bed->elf_backend_hide_symbol) (info, tlsbase, TRUE); in elf_i386_always_size_sections()
|