From patchwork Thu Jul 19 23:13:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 946635 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-94509-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="X9FJSkk6"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41WqZJ1dnsz9s4Z for ; Fri, 20 Jul 2018 09:13:27 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=Ropb8FJreKMeGI6868+56QFz5U4w38PAKfcixq7MaMCXOyZOs0TcK 9JWf6Ut5pA8tH3KjrZ+p9uc637FDRZCL9cDMc6ssJIHUvUWxL4S9K6ssukH1OiMa 6H24FUBIipwz40TjGUbi4qTr9a8bjJTgG692P2nJ3vKvefBhSfS03g= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=JC2I5Ev9xMaemzYou8RnoRdvz0s=; b=X9FJSkk6r1xED2FfT/yq1PHJTOiR LfhixYS7u6klYgYxnR75no3m98MPcZTJS7SydJx1IPenu1fCnJGv7K+Q6flXy26j ulkuaIZzssvfq1x4f3wux0g44cp/PPcPjufGgeoyQCx0qwuGbj85rPhuTf5hkkS/ UyKQLJY7za0vZUo= Received: (qmail 67113 invoked by alias); 19 Jul 2018 23:13:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 67104 invoked by uid 89); 19 Jul 2018 23:13:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=threadsafe, thread-safe, samuel, Samuel X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Enable thread-safe i386 atomic instructions Date: Fri, 20 Jul 2018 01:13:10 +0200 Message-Id: <20180719231310.8508-1-samuel.thibault@ens-lyon.org> * 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 --git a/ChangeLog b/ChangeLog index 5f98abc075..a0cd18db4d 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 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;