From: Samuel Thibault Date: Thu, 19 Jul 2018 23:12:08 +0000 (+0200) Subject: hurd: Enable thread-safe i386 atomic instructions X-Git-Tag: glibc-2.28~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46f2474e9340f71e1cbe0a246142c688a7d1ad0b;p=thirdparty%2Fglibc.git hurd: Enable thread-safe i386 atomic instructions * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads to 1. --- diff --git a/ChangeLog b/ChangeLog index 5f98abc075e..a0cd18db4d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-07-20 Samuel Thibault + + * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads + to 1. + 2018-07-19 Leonardo Sandoval * benchtests/scripts/compare_bench.py (__main__): use the argparse diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h index 771c94ff95e..da1f7b78da1 100644 --- a/sysdeps/mach/hurd/i386/tls.h +++ b/sysdeps/mach/hurd/i386/tls.h @@ -117,6 +117,8 @@ _hurd_tls_init (tcbhead_t *tcb) /* This field is used by TLS accesses to get our "thread pointer" from the TLS point of view. */ tcb->tcb = tcb; + /* We always at least start the sigthread anyway. */ + tcb->multiple_threads = 1; /* Get the first available selector. */ int sel = -1;