From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by sourceware.org (Postfix) with ESMTPS id A27CE3858437 for ; Tue, 4 Jan 2022 14:01:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A27CE3858437 Received: by mail-qt1-x82c.google.com with SMTP id f9so34138513qtk.4 for ; Tue, 04 Jan 2022 06:01:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=ZIpIlJdz8YWbq25QLCkZkRVXK18qMnI1HvzFdyzVoRc=; b=0jguxQjbA6+W3VRmUhYON5c7SqvXYY+ccjHAur65Rw7csi18noYvm5kHCmLlnCBoqW kAHMvO8z8ZGTz0MQjfqw01cUZQ+XeGQNlcABd4jYUfvzKrElAVdfActCZ4PQEM3NCDdd D+cpZ0gFHP6JCnh8bcNk62K5xYmfFVuWXVc+jgM8CcOCKr0ZyvaUmNarml38F7bp883u Ue6nw1YS1p1wR200SRBXIC5JsM6Rpja1ue4n8+qKpWW4mgPzdTgnZcmrz09+BWajUEBx FwrR9GhXXj0xzKwu5FpqYT33bSEXr9Zn6bYNgQZ+9jEQDWZfSou3E0RKJAfqPwsA/4wj BjCA== X-Gm-Message-State: AOAM530lEnOJ784TkCLbqe5yHF//49hjmIecBkbgmDAMOUY1wmY7Gvz1 KOkhO4csS1UjtoKBGjoluH065A== X-Google-Smtp-Source: ABdhPJxS8Vb0+UOmkb40SVOg23erITYvJddh3jNgQOTuLAgWLm+l0cdu3Na99HQn2020NAo/4PYmjw== X-Received: by 2002:a05:622a:1195:: with SMTP id m21mr44935586qtk.514.1641304868106; Tue, 04 Jan 2022 06:01:08 -0800 (PST) Received: from ?IPV6:2804:431:c7ca:a350:1960:9a87:fba4:a664? ([2804:431:c7ca:a350:1960:9a87:fba4:a664]) by smtp.gmail.com with ESMTPSA id w14sm32697315qkp.54.2022.01.04.06.01.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jan 2022 06:01:06 -0800 (PST) Message-ID: <47be67fa-de87-ea3e-fc06-ad151a07d719@linaro.org> Date: Tue, 4 Jan 2022 11:01:04 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH v2 05/14] LoongArch: Thread-Local Storage Support Content-Language: en-US To: caiyinyu , libc-alpha@sourceware.org Cc: xuchenghua@loongson.cn, joseph_myers@mentor.com References: <20211231064455.1030051-1-caiyinyu@loongson.cn> <20211231064455.1030051-6-caiyinyu@loongson.cn> From: Adhemerval Zanella In-Reply-To: <20211231064455.1030051-6-caiyinyu@loongson.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-14.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2022 14:01:09 -0000 On 31/12/2021 03:44, caiyinyu wrote: > diff --git a/sysdeps/loongarch/nptl/tls.h b/sysdeps/loongarch/nptl/tls.h > new file mode 100644 > index 0000000000..3b17e0b7f5 > --- /dev/null > +++ b/sysdeps/loongarch/nptl/tls.h > @@ -0,0 +1,138 @@ > +/* Definition for thread-local data handling. > + Copyright (C) 2021 Free Software Foundation, Inc. > + This file is part of the GNU C Library. > + > + The GNU C Library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Lesser General Public > + License as published by the Free Software Foundation; either > + version 2.1 of the License, or (at your option) any later version. > + > + The GNU C Library is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + Lesser General Public License for more details. > + > + You should have received a copy of the GNU Lesser General Public > + License along with the GNU C Library. If not, see > + . */ > + > +#ifndef _LOONGARCH_TLS_H > +#define _LOONGARCH_TLS_H 1 > + > +#include > + > +#ifndef __ASSEMBLER__ > +#include > +#include > +#include > +#include > + > +register void *__thread_self asm("$tp"); /* FIXME */ What exactly needs to be fixed here?