From 46f2474e9340f71e1cbe0a246142c688a7d1ad0b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 20 Jul 2018 01:12:08 +0200 Subject: hurd: Enable thread-safe i386 atomic instructions * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads to 1. --- sysdeps/mach/hurd/i386/tls.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdeps/mach') 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; -- cgit 1.4.1