freebsd-dev/sys/arm/include
John Baldwin 1a62e9bc00 Add <machine/tls.h> header to hold MD constants and helpers for TLS.
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
2021-12-09 13:17:13 -08:00
..
_align.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
_bus.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
_inttypes.h
_limits.h
_stdint.h
_types.h Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
acle-compat.h
armreg.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
asm.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
asmacros.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
atags.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
atomic-v6.h arm: fix atomic_testand{set,clear}_64 for ops on high bits 2021-01-02 18:09:37 -08:00
atomic.h Remove now unused armv4 and not-INTRNG files. 2020-11-28 15:00:08 +00:00
blockio.h
bus_dma.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
bus.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
clock.h
counter.h arm: dedup counter(9) address calculation 2021-07-19 10:46:25 +00:00
cpu-v6.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
cpu.h Remove now unused armv4 and not-INTRNG files. 2020-11-28 15:00:08 +00:00
cpufunc.h Remove unused functions and variables in cpufunc.[ch]. 2020-12-14 14:00:54 +00:00
cpuinfo.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
db_machdep.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
debug_monitor.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
disassem.h
dump.h minidump: De-duplicate the progress bar 2021-09-29 16:42:21 -03:00
efi.h
elf.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
endian.h Consolidate machine/endian.h definitions 2021-03-26 19:00:22 -03:00
exec.h
fdt.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
fiq.h
float.h
floatingpoint.h
frame.h arm: Remove obsolete comments 2021-10-27 09:44:58 -06:00
gdb_machdep.h gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
ieee.h
ieeefp.h
in_cksum.h netinet: Deduplicate most in_cksum() implementations 2021-11-24 13:31:16 -05:00
intr.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
kdb.h arm: implement kdb watchpoint functions 2021-03-29 12:05:44 -03:00
limits.h
machdep.h Remove unused functions and variables in cpufunc.[ch]. 2020-12-14 14:00:54 +00:00
md_var.h minidump: Parameterize minidumpsys() 2021-11-19 15:05:52 -04:00
memdev.h Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
metadata.h
minidump.h Sparsify the vm_page_dump bitmap 2020-09-21 22:21:59 +00:00
ofw_machdep.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
param.h Revert "arm: Bump KSTACK_PAGES default to match i386/amd64" 2021-09-01 13:13:27 -07:00
pcb.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
pcpu_aux.h Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
pcpu.h Remove PCPU_INC 2021-03-20 19:23:59 -07:00
pl310.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
platform.h
platformvar.h Use named field's initializer when constructing <foo>_platform structure. 2019-03-19 14:32:54 +00:00
pmap_var.h
pmap-v6.h Add support for pmap_enter(..., psind=1) to the armv6 pmap. In other words, 2018-08-08 16:55:01 +00:00
pmap.h Add pmap_vm_page_alloc_check() 2021-07-31 16:53:42 +03:00
pmc_mdep.h PMC: remove now orphaned PMC for INTEL XScale processors. 2020-12-25 15:21:53 +01:00
proc.h Make struct syscall_args machine independent 2021-12-08 18:45:33 +00:00
procctl.h amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
profile.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
psl.h
pte-v6.h
ptrace.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
reg.h arm: Make machine/reg.h self-contained 2021-11-23 21:21:17 -07:00
reloc.h
resource.h
runq.h
sc_machdep.h
setjmp.h
sf_buf.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
sigframe.h
signal.h
smp.h
stack.h Rewrite arm kernel stack unwind code to work when unwinding through modules. 2019-12-15 21:16:35 +00:00
stdarg.h
swi.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
sysarch.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
sysreg.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
tls.h Add <machine/tls.h> header to hold MD constants and helpers for TLS. 2021-12-09 13:17:13 -08:00
trap.h
ucontext.h
undefined.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
vdso.h
vfp.h arm: clean up empty lines in .c and .h files 2020-09-01 21:17:24 +00:00
vm.h Remove the pre-ARMv6 and pre-INTRNG code. 2020-11-29 08:40:12 +00:00
vmparam.h arm: revert MAXDSIZ change from 202aea9c82 2021-01-09 14:14:00 -06:00