diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-07-20 01:12:08 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-07-20 01:12:08 +0200 |
commit | 46f2474e9340f71e1cbe0a246142c688a7d1ad0b (patch) | |
tree | 3b6b4fbed0fa98b80290b14e1ca660512d5d73ce /sysdeps/mach | |
parent | 1cf4ae7fe644f5ad37ca82cb432147daf5c8ad77 (diff) | |
download | glibc-46f2474e9340f71e1cbe0a246142c688a7d1ad0b.tar glibc-46f2474e9340f71e1cbe0a246142c688a7d1ad0b.tar.gz glibc-46f2474e9340f71e1cbe0a246142c688a7d1ad0b.tar.bz2 glibc-46f2474e9340f71e1cbe0a246142c688a7d1ad0b.zip |
hurd: Enable thread-safe i386 atomic instructions
* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
to 1.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/i386/tls.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |