diff mbox series

[hurd,commited] hurd: Enable thread-safe i386 atomic instructions

Message ID 20180719231310.8508-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: Enable thread-safe i386 atomic instructions | expand

Commit Message

Samuel Thibault July 19, 2018, 11:13 p.m. UTC
* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
	to 1.
---
 ChangeLog                    | 5 +++++
 sysdeps/mach/hurd/i386/tls.h | 2 ++
 2 files changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/ChangeLog b/ChangeLog
index 5f98abc075..a0cd18db4d 100644
--- 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
diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h
index 771c94ff95..da1f7b78da 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;