From patchwork Fri Nov 8 13:50:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Sionneau X-Patchwork-Id: 1191896 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=kalray.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kalray.eu header.i=@kalray.eu header.b="Yzzov2aP"; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 478hW871Lxz9sP6 for ; Sat, 9 Nov 2019 00:50:58 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 6D443100A0; Fri, 8 Nov 2019 14:50:49 +0100 (CET) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from zimbra2.kalray.eu (zimbra2.kalray.eu [92.103.151.219]) by helium.openadk.org (Postfix) with ESMTPS id ECDA4100A0 for ; Fri, 8 Nov 2019 14:50:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 2C62827E0BD7 for ; Fri, 8 Nov 2019 14:50:45 +0100 (CET) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id R5wWqKWOq8EG; Fri, 8 Nov 2019 14:50:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id D572B27E0B86; Fri, 8 Nov 2019 14:50:44 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu D572B27E0B86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1573221044; bh=duarAUeVMr60D02gWAzElIesWOhkjBZhsyg4FfOhD78=; h=From:To:Date:Message-Id:MIME-Version; b=Yzzov2aPvP6wAB65gu/MhEp4qtyIONHibs8LAUwhlgx2pkcrtwlkF5rGaXODyn2Pn C11FjR/HdDvriMBgfN28NRYLZHLJV0UBTvLQ3YTyWwJ3uTGkOyzKrotd3+/8DGXQZs sNzEuPO3Bk+eLQrhNy9NaELhVG7kUsxJU3UwgTx8= X-Virus-Scanned: amavisd-new at zimbra2.kalray.eu Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ItohqeaepFLA; Fri, 8 Nov 2019 14:50:44 +0100 (CET) Received: from junon.lin.mbt.kalray.eu (unknown [192.168.37.161]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id B9B0627E031E; Fri, 8 Nov 2019 14:50:44 +0100 (CET) From: Yann Sionneau To: devel@uclibc-ng.org Date: Fri, 8 Nov 2019 14:50:27 +0100 Message-Id: <20191108135027.31944-1-ysionneau@kalray.eu> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [uclibc-ng-devel] [PATCH] riscv64: fix comments borrowed from or1k port X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" Signed-off-by: Yann Sionneau --- libpthread/nptl/sysdeps/riscv64/libc-tls.c | 2 +- libpthread/nptl/sysdeps/riscv64/tls.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libpthread/nptl/sysdeps/riscv64/libc-tls.c b/libpthread/nptl/sysdeps/riscv64/libc-tls.c index 500de1d..67c3a60 100644 --- a/libpthread/nptl/sysdeps/riscv64/libc-tls.c +++ b/libpthread/nptl/sysdeps/riscv64/libc-tls.c @@ -17,7 +17,7 @@ #include #include -/* On OpenRISC, linker optimizations are not required, so __tls_get_addr +/* On RISC-V 64, linker optimizations are not required, so __tls_get_addr can be called even in statically linked binaries. In this case module must be always 1 and PT_TLS segment exist in the binary, otherwise it would not link. */ diff --git a/libpthread/nptl/sysdeps/riscv64/tls.h b/libpthread/nptl/sysdeps/riscv64/tls.h index 33a3781..8295c71 100644 --- a/libpthread/nptl/sysdeps/riscv64/tls.h +++ b/libpthread/nptl/sysdeps/riscv64/tls.h @@ -1,4 +1,4 @@ -/* Definition for thread-local data handling. NPTL/OR1K version. +/* Definition for thread-local data handling. NPTL/RISCV64 version. Copyright (C) 2005, 2007, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -70,7 +70,7 @@ register tcbhead_t *__thread_self __asm__("tp"); * ------------------------------------ * | PRE | TCB | TLS MEMORY .. | * ------------------------------------ - * ^ r10 / TP + * ^ x4 / TP * * PRE is the struct pthread described below * TCB is tcbhead_t