| /freebsd/sys/powerpc/include/ |
| H A D | tls.h | 36 #define TLS_TCB_ALIGN TLS_TCB_SIZE 44 "r" ((uint8_t *)tcb + TLS_TP_OFFSET + TLS_TCB_SIZE)); in _tcb_set() 47 "r" ((uint8_t *)tcb + TLS_TP_OFFSET + TLS_TCB_SIZE)); in _tcb_set() 58 "i" (-(TLS_TP_OFFSET + TLS_TCB_SIZE))); in _tcb_get() 61 "i" (-(TLS_TP_OFFSET + TLS_TCB_SIZE))); in _tcb_get()
|
| /freebsd/lib/libc/gen/ |
| H A D | tls.c | 182 extra_size = tcbsize - TLS_TCB_SIZE; in get_tls_block_ptr() 184 post_size = roundup2(TLS_TCB_SIZE, libc_tls_init_align) - TLS_TCB_SIZE; in get_tls_block_ptr() 238 if (oldtcb != NULL && tcbsize == TLS_TCB_SIZE) in __libc_allocate_tls() 245 extra_size = tcbsize - TLS_TCB_SIZE; in __libc_allocate_tls() 247 post_size = roundup2(TLS_TCB_SIZE, libc_tls_init_align) - TLS_TCB_SIZE; in __libc_allocate_tls() 264 tls = (char *)tcb + TLS_TCB_SIZE + post_size; in __libc_allocate_tls() 450 tls = _rtld_allocate_tls(NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); in _init_tls()
|
| /freebsd/sys/riscv/include/ |
| H A D | tls.h | 48 __asm __volatile("addi tp, %0, %1" :: "r" (tcb), "I" (TLS_TCB_SIZE)); in _tcb_set() 56 __asm __volatile("addi %0, tp, %1" : "=r" (tcb) : "I" (-TLS_TCB_SIZE)); in _tcb_get()
|
| /freebsd/lib/libthr/thread/ |
| H A D | thr_ctrdtr.c | 42 tcb = _rtld_allocate_tls(NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); in _tcb_ctor() 52 _rtld_free_tls(tcb, TLS_TCB_SIZE, TLS_TCB_ALIGN); in _tcb_dtor()
|
| /freebsd/libexec/rtld-elf/arm/ |
| H A D | rtld_machdep.h | 83 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
|
| H A D | reloc.c | 462 _tcb_set(allocate_tls(objs, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN)); in allocate_initial_tls()
|
| /freebsd/libexec/rtld-elf/aarch64/ |
| H A D | rtld_machdep.h | 95 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
|
| H A D | reloc.c | 628 _tcb_set(allocate_tls(objs, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN)); in allocate_initial_tls()
|
| /freebsd/sys/sys/ |
| H A D | _tls_variant_i.h | 55 #define TLS_TCB_SIZE sizeof(struct tcb) macro
|
| /freebsd/sys/x86/include/ |
| H A D | tls.h | 65 #define TLS_TCB_SIZE sizeof(struct tcb) macro
|
| /freebsd/libexec/rtld-elf/riscv/ |
| H A D | rtld_machdep.h | 104 TLS_TCB_SIZE
|
| H A D | reloc.c | 429 defobj->tlsoffset - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_non_plt() 468 _tcb_set(allocate_tls(objs, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN)); in allocate_initial_tls()
|
| /freebsd/libexec/rtld-elf/powerpc/ |
| H A D | rtld_machdep.h | 91 TLS_TCB_SIZE
|
| H A D | reloc.c | 275 + defobj->tlsoffset - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_nonplt_object() 819 _tcb_set(allocate_tls(list, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN)); in allocate_initial_tls()
|
| /freebsd/libexec/rtld-elf/powerpc64/ |
| H A D | rtld_machdep.h | 83 TLS_TCB_SIZE
|
| H A D | reloc.c | 270 + defobj->tlsoffset - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_nonplt_object() 716 _tcb_set(allocate_tls(list, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN)); in allocate_initial_tls()
|
| /freebsd/libexec/rtld-elf/amd64/ |
| H A D | reloc.c | 623 addr = allocate_tls(objs, 0, TLS_TCB_SIZE, TLS_TCB_ALIGN); in allocate_initial_tls()
|
| /freebsd/libexec/rtld-elf/i386/ |
| H A D | reloc.c | 597 tls = allocate_tls(objs, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); in allocate_initial_tls()
|
| /freebsd/libexec/rtld-elf/ |
| H A D | rtld.c | 5582 extra_size = tcbsize - TLS_TCB_SIZE; in get_tls_block_ptr() 5615 if (oldtcb != NULL && tcbsize == TLS_TCB_SIZE) in allocate_tls() 5618 assert(tcbsize >= TLS_TCB_SIZE); in allocate_tls() 5623 extra_size = tcbsize - TLS_TCB_SIZE; in allocate_tls() 5627 tls_block_size += pre_size + tls_static_space - TLS_TCB_SIZE - in allocate_tls() 5694 assert(tcbsize >= TLS_TCB_SIZE); in free_tls() 5700 tlsstart = (uintptr_t)tcb + TLS_TCB_SIZE + post_size; in free_tls()
|