mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
The header exports the following: - Definition of struct tcb. - Helpers to get/set the tcb for the current thread. - TLS_TCB_SIZE (size of TCB) - TLS_TCB_ALIGN (alignment of TCB) - TLS_VARIANT_I or TLS_VARIANT_II - TLS_DTV_OFFSET (bias of pointers in dtv[]) - TLS_TP_OFFSET (bias of "thread pointer" relative to TCB) Note that TLS_TP_OFFSET does not account for if the unbiased thread pointer points to the start of the TCB (arm and x86) or the end of the TCB (MIPS, PowerPC, and RISC-V). Note also that for amd64, the struct tcb does not include the unused tcb_spare field included in the current structure in libthr. libthr does not use this field, and the existing calls in libc and rtld that allocate a TCB for amd64 assume it is the size of 3 Elf_Addr's (and thus do not allocate room for tcb_spare). A <sys/_tls_variant_i.h> header is used by architectures using Variant I TLS which uses a common struct tcb. Reviewed by: kib (older version of x86/tls.h), jrtc27 Sponsored by: The University of Cambridge, Google Inc. Differential Revision: https://reviews.freebsd.org/D33351 |
||
|---|---|---|
| .. | ||
| _align.h | ||
| _bus.h | ||
| _inttypes.h | ||
| _limits.h | ||
| _stdint.h | ||
| _types.h | ||
| abi.h | ||
| asm.h | ||
| atomic.h | ||
| bootinfo.h | ||
| bus.h | ||
| bus_dma.h | ||
| cache.h | ||
| cache_mipsNN.h | ||
| cache_r4k.h | ||
| cca.h | ||
| cdefs.h | ||
| clock.h | ||
| counter.h | ||
| cpu.h | ||
| cpufunc.h | ||
| cpuinfo.h | ||
| cpuregs.h | ||
| db_machdep.h | ||
| dump.h | ||
| efi.h | ||
| elf.h | ||
| endian.h | ||
| exec.h | ||
| fdt.h | ||
| float.h | ||
| floatingpoint.h | ||
| fls64.h | ||
| fpu.h | ||
| frame.h | ||
| gdb_machdep.h | ||
| hwfunc.h | ||
| ieee.h | ||
| ieeefp.h | ||
| in_cksum.h | ||
| intr.h | ||
| intr_machdep.h | ||
| kdb.h | ||
| limits.h | ||
| locore.h | ||
| md_var.h | ||
| memdev.h | ||
| metadata.h | ||
| minidump.h | ||
| mips_opcode.h | ||
| octeon_cop2.h | ||
| ofw_machdep.h | ||
| param.h | ||
| pcb.h | ||
| pcpu.h | ||
| pcpu_aux.h | ||
| pmap.h | ||
| pmc_mdep.h | ||
| proc.h | ||
| procctl.h | ||
| profile.h | ||
| pte.h | ||
| ptrace.h | ||
| reg.h | ||
| regdef.h | ||
| regnum.h | ||
| reloc.h | ||
| resource.h | ||
| runq.h | ||
| sc_machdep.h | ||
| setjmp.h | ||
| sf_buf.h | ||
| sigframe.h | ||
| signal.h | ||
| smp.h | ||
| stdarg.h | ||
| sysarch.h | ||
| tlb.h | ||
| tls.h | ||
| trap.h | ||
| ucontext.h | ||
| vdso.h | ||
| vm.h | ||
| vmparam.h | ||