freebsd-nq/sys/arm64
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
..
acpica Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
arm64 syscall_args: remove MAXARGS define 2021-12-08 18:45:41 +00:00
broadcom genet: pullup minimum header amount for IPv4 2021-06-26 11:04:02 -05:00
cavium Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
conf Per-thread stack canary on arm64 2021-11-26 14:44:00 +00:00
coresight
freescale/imx Add the clock for the imx8 thermal monitoring unit. 2021-09-28 11:51:57 -06:00
include Add <machine/tls.h> header to hold MD constants and helpers for TLS. 2021-12-09 13:17:13 -08:00
intel
iommu Use the vm_radix_init() helper when initializing pmaps 2021-10-19 21:22:56 -04:00
linux Regen 2021-12-09 02:49:10 +02:00
nvidia/tegra210 arm64: Directly use #include <dt-binding/...> 2021-01-15 20:07:19 +01:00
qoriq Introduce qoriq_gpio_pic driver 2021-11-06 09:08:45 +01:00
qualcomm
rockchip rk_spi: declare support for rk3328 2021-11-25 23:28:58 +02:00