Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2099206rdg; Sun, 15 Oct 2023 11:00:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEorqD9eos/YTrlbp9HaKG8ovw9AtPHyHJ+HYThgk/f5psYvOz7DXlKCGhksYzqv2HDiJ1k X-Received: by 2002:a05:6870:1391:b0:1e9:c18b:b2da with SMTP id 17-20020a056870139100b001e9c18bb2damr10427531oas.18.1697392842172; Sun, 15 Oct 2023 11:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697392842; cv=none; d=google.com; s=arc-20160816; b=B/P0RgO3gFMXgbFDUQLlxiI3u3v2t3gAzK9EFxdvj2JK1SFTKt2WQeBjcvFu3oVbDT TgA3Jga13dHEOb8PBuOmzMXMcUHW3ftLFgwK3YvHOLGm2kUVDGCXlj0ekKdQ33HxThBa 1mFb7yyytqtt5esqax31gbps0pUfQO/AEjf60dnZhbPXfOdyF3zeQVNX4+x5vAUhonKM uk8Rs9oAXdb1KD4nN2orHPPzNFk0qznw5NRlH9wwKiSbDBwxBwFVDxeRhe08CBZ0GFsK YNWDHMrQkXCO64VH8fAUokMogabRaOqqTRHd0ioXKHNSWnZhUV/g7P+Su2XrSpOmMtd3 6P0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3mnMwUE/VJdjqgsJ8KZbSumMDbX0UjFMHEkx0fKSYyI=; fh=GR81fMCxKKnHjdl5KTnfPmwhz4PDRtpalqxg+BpuudY=; b=qvpIlEEkYLFisrJC5KwU+qQva+s/QjzPUYyFvw0LZJvd9YJvpWEDjlkPaT2JQF2B45 h4qvuvdbaSv/iOqOw3HmQW+DHnTgUMrr8q848XKxBJg2JNOhgqn++1Yx2J+5fnEXROmj eJo8lx9RjnpY0E8g46jw4nFtvCUklmchmoK93bIItKSkSxx039IgT8F6t/1PGKXz0f71 hkg5kh9XkerPtpcpTELtqOY/VGMFeAGg2oRin+vH41/b4y5iBwwOy6vVGV2bLwbuCuFO XMMgtU+ctIRjxBPLgbjtXxjr5LaMTsv69TJo/PDEOXciKtlKKZ6YuQ05esbtwIYGe1cb sg3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ER4bnpss; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 140-20020a630092000000b005afad537c85si4524016pga.728.2023.10.15.11.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 11:00:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ER4bnpss; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 78D908051909; Sun, 15 Oct 2023 11:00:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbjJOSAf (ORCPT + 99 others); Sun, 15 Oct 2023 14:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJOSAe (ORCPT ); Sun, 15 Oct 2023 14:00:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EB26AB; Sun, 15 Oct 2023 11:00:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79A9FC43397; Sun, 15 Oct 2023 18:00:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697392832; bh=piHJs+ybB0MdD/qyJl2IOnZ75r2K0CHjvRZd1YpgqVc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ER4bnpssTKFVdXZz70SBbEedenKnzzcs/yq32ZIkClASp+G8MDpHyKl4XN/xlXK8c oW8m3xk7/fG3+NC0bBQ0//SIgXXAsLT0iyMqMV32dOFF56bGSlCBI5UhRW+IUhhKdU 2NcKvL0N6E73VYFMIRMtlEI+ffrHIiAyijQvkAHYu2cV6dyf9WwYbkcKKjnRbzl7F1 l3kBlfRNinaIe0xeqAAPlQznYweo71o/AjPa/yxeCttrWidCba0WQ9WGu9wvzERNIv g8mZb3w+gU1npNtj+i5nCilsisiHEU1xiDdpuccCAGC2qTLBd51/ykE7s0Pr54EPgN cPmCD91cmH7Tw== Date: Sun, 15 Oct 2023 20:00:28 +0200 From: Alejandro Colomar To: guoren@kernel.org Cc: arnd@arndb.de, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, Guo Ren Subject: Re: [PATCH] set_thread_area.2: Add C-SKY document Message-ID: References: <20231015150732.1991997-1-guoren@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RQffCt7lJSAc+KXW" Content-Disposition: inline In-Reply-To: <20231015150732.1991997-1-guoren@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 15 Oct 2023 11:00:37 -0700 (PDT) --RQffCt7lJSAc+KXW Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Sun, 15 Oct 2023 20:00:28 +0200 From: Alejandro Colomar To: guoren@kernel.org Cc: arnd@arndb.de, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, Guo Ren Subject: Re: [PATCH] set_thread_area.2: Add C-SKY document Hi Guo, On Sun, Oct 15, 2023 at 11:07:32AM -0400, guoren@kernel.org wrote: > From: Guo Ren >=20 > C-SKY only needs set_thread_area, no need for get_thread_area, the > same as MIPS. >=20 > Signed-off-by: Guo Ren > Signed-off-by: Guo Ren > --- Patch applied. Thanks! Alex > man2/set_thread_area.2 | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/man2/set_thread_area.2 b/man2/set_thread_area.2 > index 02f65e0418f2..c43a92eb447a 100644 > --- a/man2/set_thread_area.2 > +++ b/man2/set_thread_area.2 > @@ -26,7 +26,7 @@ Standard C library > .B "int syscall(SYS_get_thread_area);" > .BI "int syscall(SYS_set_thread_area, unsigned long " tp ); > .PP > -.B #elif defined __mips__ > +.B #elif defined(__mips__ || defined __csky__) I removed the parentheses here. > .PP > .BI "int syscall(SYS_set_thread_area, unsigned long " addr ); > .PP > @@ -42,17 +42,17 @@ These calls provide architecture-specific support for= a thread-local storage > implementation. > At the moment, > .BR set_thread_area () > -is available on m68k, MIPS, and x86 (both 32-bit and 64-bit variants); > +is available on m68k, MIPS, C-SKY, and x86 (both 32-bit and 64-bit varia= nts); > .BR get_thread_area () > is available on m68k and x86. > .PP > -On m68k and MIPS, > +On m68k, MIPS and C-SKY, > .BR set_thread_area () > allows storing an arbitrary pointer (provided in the > .B tp > argument on m68k and in the > .B addr > -argument on MIPS) > +argument on MIPS and C-SKY) > in the kernel data structure associated with the calling thread; > this pointer can later be retrieved using > .BR get_thread_area () > @@ -139,7 +139,7 @@ return 0 on success, and \-1 on failure, with > .I errno > set to indicate the error. > .PP > -On MIPS and m68k, > +On C-SKY, MIPS and m68k, > .BR set_thread_area () > always returns 0. > On m68k, > --=20 > 2.36.1 >=20 --=20 --RQffCt7lJSAc+KXW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6jqH8KTroDDkXfJAnowa+77/2zIFAmUsKL0ACgkQnowa+77/ 2zIdrhAAmxsnf5OdSwjwyyN4uq0JEjaj91iYRt8saR3EnhOWmUxjwESlXdXnx6xs xagi7NIjtUrxZ+1x+lTIGRRm3GLjCXXxUlDWLcfu5vV4/Rika2xWbRmCQesK0JVv FsLuI5nkTvRC9ljpErovPFwQEYITAs7u5cqHqxAK6f+Z0e9dlyhK7B1RW9XZ5X8b XbmeTyVHv5jMGLdbhOnQyPHtke+KESarQKqhF1XgxvELKMYjIuiJi81zSPYJBUpf zi+RYQMID2xfg3f8hgiweb3gK9oxgcmoxPTFNFD1VwnVnAdrG+rAGfAdwiQ153Az CI0UuBk81/Y+Wljo6Wb9BkdHYv5bAE85AqW5wf0QNc0VW1wL6t9CsChrKy3xEA+Z 935Tme4iYXoC+b0ruVoGEcBr6UA6voulQWoink6CxiiutfQpCUh5/2YL7a0okNEb KelJvtR0/bGctfc3qxHOySZk8YQnvSxZrkZNvr+LeZD4qas4sfdfMIu+Zug03BSj ljCAa9s8f4TF+iPTo4nKDfeZXvsfLUi0g7Xb2rXsgdrgRoMnuTKrIdTS/Oy/a83H gahmve/umFqBcWgta4frJ70T82jdCjkd8WWb04xJZZRH0w2YyawM+YNYVVrfzBQB uiLlkjaoDeHqUHp/dGoLnmf+/kGs3yPJ6q3ervdZ9jNbZgGOq2w= =af27 -----END PGP SIGNATURE----- --RQffCt7lJSAc+KXW--