]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Enable thread-safe i386 atomic instructions
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 19 Jul 2018 23:12:08 +0000 (01:12 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 19 Jul 2018 23:12:08 +0000 (01:12 +0200)
* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
to 1.

ChangeLog
sysdeps/mach/hurd/i386/tls.h

index 5f98abc075ed571fdc3bd5d4f84536ad90992993..a0cd18db4d15f89e3919d359e29054d098293a54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
+       to 1.
+
 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
 
        * benchtests/scripts/compare_bench.py (__main__): use the argparse
index 771c94ff95e34cb19803b690c7323a47a6294c82..da1f7b78da13fdb90a625e81daa65b02d0469861 100644 (file)
@@ -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;