Home
last modified time | relevance | path

Searched refs:tlsbase (Results 1 – 20 of 20) sorted by relevance

/freebsd-13.1/lib/libc/mips/
H A Dstatic_tls.h41 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-13.1/lib/libc/arm/
H A Dstatic_tls.h39 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-13.1/lib/libc/aarch64/
H A Dstatic_tls.h39 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-13.1/lib/libc/i386/
H A Dstatic_tls.h39 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-13.1/lib/libc/riscv/
H A Dstatic_tls.h39 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-13.1/lib/libc/powerpc64/
H A Dstatic_tls.h39 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-13.1/lib/libc/powerpc/
H A Dstatic_tls.h39 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-13.1/lib/libc/amd64/
H A Dstatic_tls.h39 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-13.1/lib/libthr/arch/i386/include/
H A Dpthread_tls.h39 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-13.1/lib/libthr/arch/mips/include/
H A Dpthread_tls.h39 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-13.1/lib/libthr/arch/aarch64/include/
H A Dpthread_tls.h39 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-13.1/lib/libthr/arch/riscv/include/
H A Dpthread_tls.h39 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-13.1/lib/libthr/arch/arm/include/
H A Dpthread_tls.h39 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-13.1/lib/libthr/arch/amd64/include/
H A Dpthread_tls.h39 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-13.1/lib/libthr/arch/powerpc/include/
H A Dpthread_tls.h39 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-13.1/sys/mips/mips/
H A Dsys_machdep.c61 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 Dfreebsd32_machdep.c454 int32_t tlsbase; in freebsd32_sysarch() local
472 tlsbase = (int32_t)(intptr_t)td->td_md.md_tls; in freebsd32_sysarch()
473 error = copyout(&tlsbase, uap->parms, sizeof(tlsbase)); in freebsd32_sysarch()
/freebsd-13.1/lib/libthr/thread/
H A Dthr_list.c370 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-13.1/lib/libc/gen/
H A Delf_utils.c107 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-13.1/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DRegisterContextNetBSD_i386.cpp64 uint32_t tlsbase; member