| /NextBSD/lib/libc/gen/ |
| HD | tls.c | 115 #define TLS_TCB_SIZE (2 * sizeof(void *)) macro 126 tls = (Elf_Addr **)((Elf_Addr)tcb + tcbsize - TLS_TCB_SIZE); in __libc_free_tls() 142 if (oldtcb != NULL && tcbsize == TLS_TCB_SIZE) in __libc_allocate_tls() 145 tcb = __je_bootstrap_calloc(1, tls_static_space + tcbsize - TLS_TCB_SIZE); in __libc_allocate_tls() 146 tls = (Elf_Addr **)(tcb + tcbsize - TLS_TCB_SIZE); in __libc_allocate_tls() 154 dtv[2] = (Elf_Addr)tls + TLS_TCB_SIZE; in __libc_allocate_tls() 160 dtv[2] = (Elf_Addr)tls + TLS_TCB_SIZE; in __libc_allocate_tls() 176 #define TLS_TCB_SIZE (3 * sizeof(Elf_Addr)) macro 320 tls_static_space += TLS_TCB_SIZE; in _init_tls() 323 tls = _rtld_allocate_tls(NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); in _init_tls()
|
| /NextBSD/sys/mips/include/ |
| HD | tls.h | 47 #define TLS_TCB_SIZE 16 macro 52 #define TLS_TCB_SIZE 8 macro
|
| /NextBSD/libexec/rtld-elf/riscv/ |
| HD | reloc.c | 382 tp = (Elf_Addr **) ((char *)allocate_tls(objs, NULL, TLS_TCB_SIZE, 16) in allocate_initial_tls() 383 + TLS_TP_OFFSET + TLS_TCB_SIZE); in allocate_initial_tls() 397 - TLS_TCB_SIZE), ti->ti_module, ti->ti_offset); in __tls_get_addr()
|
| HD | rtld_machdep.h | 91 #define TLS_TCB_SIZE 16 macro
|
| /NextBSD/libexec/rtld-elf/powerpc64/ |
| HD | reloc.c | 539 tp = (Elf_Addr **) ((char *)allocate_tls(list, NULL, TLS_TCB_SIZE, 16) in allocate_initial_tls() 540 + TLS_TP_OFFSET + TLS_TCB_SIZE); in allocate_initial_tls() 553 - TLS_TCB_SIZE), ti->ti_module, ti->ti_offset); in __tls_get_addr()
|
| HD | rtld_machdep.h | 65 #define TLS_TCB_SIZE 16 macro
|
| /NextBSD/libexec/rtld-elf/arm/ |
| HD | reloc.c | 323 TLS_TCB_SIZE; in reloc_nonplt_object() 489 (*_tp) = (void *) allocate_tls(objs, NULL, TLS_TCB_SIZE, 8); in allocate_initial_tls() 491 sysarch(ARM_SET_TP, allocate_tls(objs, NULL, TLS_TCB_SIZE, 8)); in allocate_initial_tls()
|
| HD | rtld_machdep.h | 54 #define TLS_TCB_SIZE 8 macro
|
| /NextBSD/libexec/rtld-elf/powerpc/ |
| HD | reloc.c | 635 tp = (Elf_Addr **) ((char *) allocate_tls(list, NULL, TLS_TCB_SIZE, 8) in allocate_initial_tls() 636 + TLS_TP_OFFSET + TLS_TCB_SIZE); in allocate_initial_tls() 653 - TLS_TCB_SIZE), ti->ti_module, ti->ti_offset); in __tls_get_addr()
|
| HD | rtld_machdep.h | 73 #define TLS_TCB_SIZE 8 macro
|
| /NextBSD/libexec/rtld-elf/mips/ |
| HD | rtld_machdep.h | 63 round(TLS_TCB_SIZE, align)
|
| HD | reloc.c | 527 - TLS_TP_OFFSET - TLS_TCB_SIZE); in reloc_non_plt() 632 tls = (char *) allocate_tls(objs, NULL, TLS_TCB_SIZE, 8); in allocate_initial_tls()
|
| /NextBSD/libexec/rtld-elf/aarch64/ |
| HD | rtld_machdep.h | 72 #define TLS_TCB_SIZE 16 macro
|
| HD | reloc.c | 412 tp = (Elf_Addr **) allocate_tls(objs, NULL, TLS_TCB_SIZE, 16); in allocate_initial_tls()
|
| /NextBSD/libexec/rtld-elf/ |
| HD | rtld.c | 4433 if (oldtcb != NULL && tcbsize == TLS_TCB_SIZE) in allocate_tls() 4436 assert(tcbsize >= TLS_TCB_SIZE); in allocate_tls() 4437 tcb = xcalloc(1, tls_static_space - TLS_TCB_SIZE + tcbsize); in allocate_tls() 4438 tls = (Elf_Addr **)(tcb + tcbsize - TLS_TCB_SIZE); in allocate_tls() 4481 assert(tcbsize >= TLS_TCB_SIZE); in free_tls() 4483 tlsstart = (Elf_Addr)tcb + tcbsize - TLS_TCB_SIZE; in free_tls()
|
| /NextBSD/sys/mips/mips/ |
| HD | trap.c | 907 frame_regs[inst.RType.rt] += TLS_TP_OFFSET + TLS_TCB_SIZE; in trap()
|