libc: Teak comment about mips

Remove mips from the list of machines using TLS variant I and reformat
paragraph. No functional change intended.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-01-10 10:14:12 -07:00
parent 1866c766d2
commit 479ef15dfd

View File

@ -148,11 +148,11 @@ libc_free_aligned(void *ptr)
* Note: for Local Exec TLS Model, the offsets from TP (TCB in this case) to
* TLS variables are computed by linker, so we cannot overalign TLS section.
*
* - MIPS, PowerPC and RISC-V use modified version of variant I,
* described in [3] where TP points (with bias) to TLS and TCB immediately
* precedes TLS without any alignment gap[4]. Only TLS should be aligned.
* The TCB[0] points to DTV vector and DTV values are biased by constant
* value (TLS_DTV_OFFSET) from real addresses[5].
* - PowerPC and RISC-V use modified version of variant I, described in [3]
* where TP points (with bias) to TLS and TCB immediately precedes TLS without
* any alignment gap[4]. Only TLS should be aligned. The TCB[0] points to DTV
* vector and DTV values are biased by constant value (TLS_DTV_OFFSET) from
* real addresses[5].
*
* [1] Ulrich Drepper: ELF Handling for Thread-Local Storage
* www.akkadia.org/drepper/tls.pdf