| /freebsd-13.1/lib/libc/gen/ |
| H A D | tls.c | 194 extra_size = tcbsize - TLS_TCB_SIZE; in get_tls_block_ptr() 196 post_size = roundup2(TLS_TCB_SIZE, libc_tls_init_align) - TLS_TCB_SIZE; in get_tls_block_ptr() 251 if (oldtcb != NULL && tcbsize == TLS_TCB_SIZE) in __libc_allocate_tls() 258 extra_size = tcbsize - TLS_TCB_SIZE; in __libc_allocate_tls() 260 post_size = roundup2(TLS_TCB_SIZE, libc_tls_init_align) - TLS_TCB_SIZE; in __libc_allocate_tls() 277 tls = (char *)tcb + TLS_TCB_SIZE + post_size; in __libc_allocate_tls() 310 #define TLS_TCB_SIZE (3 * sizeof(Elf_Addr)) macro 463 tls = _rtld_allocate_tls(NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); in _init_tls()
|
| /freebsd-13.1/libexec/rtld-elf/arm/ |
| H A D | rtld_machdep.h | 59 #define TLS_TCB_SIZE 8 macro 72 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE
|
| H A D | reloc.c | 507 (*_tp) = (void *) allocate_tls(objs, NULL, TLS_TCB_SIZE, 8); in allocate_initial_tls() 509 sysarch(ARM_SET_TP, allocate_tls(objs, NULL, TLS_TCB_SIZE, 8)); in allocate_initial_tls()
|
| /freebsd-13.1/libexec/rtld-elf/aarch64/ |
| H A D | rtld_machdep.h | 80 round(TLS_TCB_SIZE, align) - TLS_TCB_SIZE 82 #define TLS_TCB_SIZE 16 macro
|
| H A D | reloc.c | 529 tp = (Elf_Addr **) allocate_tls(objs, NULL, TLS_TCB_SIZE, 16); in allocate_initial_tls()
|
| /freebsd-13.1/sys/mips/include/ |
| H A D | tls.h | 45 #define TLS_TCB_SIZE 16 macro 50 #define TLS_TCB_SIZE 8 macro
|
| /freebsd-13.1/lib/libc/mips/ |
| H A D | static_tls.h | 50 tlsbase -= TLS_TP_OFFSET + TLS_TCB_SIZE; in _libc_get_static_tls_base() 58 tlsbase -= TLS_TP_OFFSET + TLS_TCB_SIZE; in _libc_get_static_tls_base()
|
| /freebsd-13.1/lib/libc/mips/gen/ |
| H A D | _get_tp.c | 61 _rv = _rv - TLS_TP_OFFSET - TLS_TCB_SIZE; in _mips_get_tls() 86 _rv = _rv - TLS_TP_OFFSET - TLS_TCB_SIZE; in _mips_get_tls()
|
| /freebsd-13.1/lib/libthr/arch/mips/include/ |
| H A D | pthread_md.h | 98 return (struct tcb *)(_rv - TLS_TP_OFFSET - TLS_TCB_SIZE); in _tcb_get() 120 return (struct tcb *)(_rv - TLS_TP_OFFSET - TLS_TCB_SIZE); in _tcb_get()
|
| /freebsd-13.1/libexec/rtld-elf/powerpc64/ |
| H A D | rtld_machdep.h | 71 #define TLS_TCB_SIZE 16 macro 76 TLS_TCB_SIZE
|
| H A D | reloc.c | 261 + defobj->tlsoffset - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_nonplt_object() 722 tp = (Elf_Addr **)((char *)allocate_tls(list, NULL, TLS_TCB_SIZE, 16) in allocate_initial_tls() 723 + TLS_TP_OFFSET + TLS_TCB_SIZE); in allocate_initial_tls() 736 - TLS_TCB_SIZE), ti->ti_module, ti->ti_offset); in __tls_get_addr()
|
| /freebsd-13.1/libexec/rtld-elf/riscv/ |
| H A D | rtld_machdep.h | 88 #define TLS_TCB_SIZE 16 macro 93 TLS_TCB_SIZE
|
| H A D | reloc.c | 366 defobj->tlsoffset - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_non_plt() 400 tp = (Elf_Addr **)((char *)allocate_tls(objs, NULL, TLS_TCB_SIZE, 16) in allocate_initial_tls() 401 + TLS_TP_OFFSET + TLS_TCB_SIZE); in allocate_initial_tls() 415 - TLS_TCB_SIZE), ti->ti_module, ti->ti_offset); in __tls_get_addr()
|
| /freebsd-13.1/libexec/rtld-elf/powerpc/ |
| H A D | rtld_machdep.h | 79 #define TLS_TCB_SIZE 8 macro 84 TLS_TCB_SIZE
|
| H A D | reloc.c | 266 + defobj->tlsoffset - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_nonplt_object() 825 tp = (Elf_Addr **)((char *) allocate_tls(list, NULL, TLS_TCB_SIZE, 8) in allocate_initial_tls() 826 + TLS_TP_OFFSET + TLS_TCB_SIZE); in allocate_initial_tls() 843 - TLS_TCB_SIZE), ti->ti_module, ti->ti_offset); in __tls_get_addr()
|
| /freebsd-13.1/lib/libc/riscv/gen/ |
| H A D | _get_tp.c | 46 return ((void *)(tp - TLS_TP_OFFSET - TLS_TCB_SIZE)); in _get_tp()
|
| /freebsd-13.1/lib/libc/powerpc/gen/ |
| H A D | _get_tp.c | 46 return ((void *)(tp - TLS_TP_OFFSET - TLS_TCB_SIZE)); in _get_tp()
|
| /freebsd-13.1/lib/libc/powerpc64/gen/ |
| H A D | _get_tp.c | 46 return ((void *)(tp - TLS_TP_OFFSET - TLS_TCB_SIZE)); in _get_tp()
|
| /freebsd-13.1/libexec/rtld-elf/mips/ |
| H A D | rtld_machdep.h | 68 TLS_TCB_SIZE
|
| H A D | reloc.c | 623 - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_non_plt() 774 tls = (char *) allocate_tls(objs, NULL, TLS_TCB_SIZE, 8); in allocate_initial_tls()
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | pm_machdep.c | 482 TLS_TCB_SIZE; in exec_setregs()
|
| /freebsd-13.1/libexec/rtld-elf/ |
| H A D | rtld.c | 5221 extra_size = tcbsize - TLS_TCB_SIZE; in get_tls_block_ptr() 5250 if (oldtcb != NULL && tcbsize == TLS_TCB_SIZE) in allocate_tls() 5253 assert(tcbsize >= TLS_TCB_SIZE); in allocate_tls() 5258 extra_size = tcbsize - TLS_TCB_SIZE; in allocate_tls() 5262 tls_block_size += pre_size + tls_static_space - TLS_TCB_SIZE - post_size; in allocate_tls() 5318 assert(tcbsize >= TLS_TCB_SIZE); in free_tls() 5324 tlsstart = (Elf_Addr)tcb + TLS_TCB_SIZE + post_size; in free_tls()
|