Home
last modified time | relevance | path

Searched refs:TLS_TCB_SIZE (Results 1 – 19 of 19) sorted by relevance

/freebsd/sys/powerpc/include/
H A Dtls.h36 #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 Dtls.c182 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 Dtls.h48 __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 Dthr_ctrdtr.c42 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 Drtld_machdep.h83 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
H A Dreloc.c462 _tcb_set(allocate_tls(objs, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN)); in allocate_initial_tls()
/freebsd/libexec/rtld-elf/aarch64/
H A Drtld_machdep.h95 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
H A Dreloc.c628 _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.h55 #define TLS_TCB_SIZE sizeof(struct tcb) macro
/freebsd/sys/x86/include/
H A Dtls.h65 #define TLS_TCB_SIZE sizeof(struct tcb) macro
/freebsd/libexec/rtld-elf/riscv/
H A Drtld_machdep.h104 TLS_TCB_SIZE
H A Dreloc.c429 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 Drtld_machdep.h91 TLS_TCB_SIZE
H A Dreloc.c275 + 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 Drtld_machdep.h83 TLS_TCB_SIZE
H A Dreloc.c270 + 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 Dreloc.c623 addr = allocate_tls(objs, 0, TLS_TCB_SIZE, TLS_TCB_ALIGN); in allocate_initial_tls()
/freebsd/libexec/rtld-elf/i386/
H A Dreloc.c597 tls = allocate_tls(objs, NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); in allocate_initial_tls()
/freebsd/libexec/rtld-elf/
H A Drtld.c5582 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()