On Tue, Dec 03, 2019 at 05:11:49PM +0100, Kamil Rytarowski wrote: > TLSBASE is stored on a selection of ports in a dedicated mcontext entry, > out of gpregs.
That's an implementation detail and IMO something we shouldn't leak outside the arch. Just provide an accessor for l_private. There are then two possible options: (1) An MD register is used directly for the TLS base. In that case, the register should be used and l_private is normally irrelevant. (2) No MD register is used (directly). In that case l_private is correct. Joerg