From dc1a77269c971652a8a5167ec366792eae052e65 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sat, 23 Mar 2024 20:32:59 +0300 Subject: htl: Implement some support for TLS_DTV_AT_TP Signed-off-by: Sergey Bugaev Message-ID: <20240323173301.151066-19-bugaevc@gmail.com> --- htl/pt-create.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'htl') diff --git a/htl/pt-create.c b/htl/pt-create.c index fac61f1..8a735d9 100644 --- a/htl/pt-create.c +++ b/htl/pt-create.c @@ -177,7 +177,9 @@ __pthread_create_internal (struct __pthread **thread, err = ENOMEM; goto failed_thread_tls_alloc; } +#if TLS_TCB_AT_TP pthread->tcb->tcb = pthread->tcb; +#endif /* And initialize the rest of the machine context. This may include additional machine- and system-specific initializations that -- cgit v1.1