Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2221366rdg; Sun, 15 Oct 2023 17:53:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPHkeNUrKuLWywPbt2TF23iTT14DGHA/f5Lotzup+PHjir/pvcKhnLE6Ny3m6ot0Jn2u1A X-Received: by 2002:a17:902:e38c:b0:1c9:d6f8:1902 with SMTP id g12-20020a170902e38c00b001c9d6f81902mr8558922ple.15.1697417638457; Sun, 15 Oct 2023 17:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697417638; cv=none; d=google.com; s=arc-20160816; b=USzoBKBd0x9s2CUV1b1qR+D35rAndVyTT1B/4kkMf3XIf31W05KbdyHFAXAHzrsPYp y/9hMU3WVMaXrlO1AfVeqbWCePPT501xQa/R3QCN6cWJ/oPQNTL9/eQMBZO7vpSiSg39 c2RiWYxQSIN7BQSE3q4VCQx7e7zOI0GJgfNft93XfW88fKlIORSe5O2p5mNM1Cs9sWtX Y5IqtUr13y9TxDLyqSo5DiADrdabwoUxBSSQSiZG6LWmzD6KUjHOGublqHdc5EqYpsVd +LrEY2W92hhVDXBNfhA56eO2bstk2bOa0n6K7SoRRZYC/q2xpcIfBdMp7eZ1KRA+A3V6 4TXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=VvG/k2iji0/CV4sCpca5rIQiNAG7XmIC9FQVBaw7KSc=; fh=rXnFB3PMFdqne+dwl2c8/eDDQhdsF98mRmdxrgrmWEs=; b=BIVOFs5FmC3ULucnb8Kre0LdTNm2VgwCaAy5i+ifqsOcshecuGiYeIIDBHuJdhbjB1 EceXv344MqJk7nvYSb3hPEB5f7h7fXW15G2zoM7MxmlPIQzLGKPWlKsDgLjUzlMydiaB AgJlsBHfWJEhdaG0Ws3hKMldliDBMpa+sr//CGXX/q2xMiwE+CyK2364/pKAv5MF2K8g OPcg4Rwwg48fPkUi4xNPiJesL1gY1Nao5gHzy7XyB4gy8ccLgsVSyMtUpMTUm2BbXvOR 39+1+h7y/EDBf/evPMxKPq/WWDqiik3VD+ZffilEO+lsoxvHWwzf0stZYHtlEv9Bi8nV e+oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JYIEdhEV; 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 v8-20020a170902b7c800b001bdca6456c3si4257197plz.46.2023.10.15.17.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 17:53:58 -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=JYIEdhEV; 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 8C0678059E6B; Sun, 15 Oct 2023 17:53:57 -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 S229611AbjJPAxz (ORCPT + 99 others); Sun, 15 Oct 2023 20:53:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjJPAxy (ORCPT ); Sun, 15 Oct 2023 20:53:54 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 194D7A9; Sun, 15 Oct 2023 17:53:50 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 915ADC433CB; Mon, 16 Oct 2023 00:53:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697417629; bh=VeTuSjzLgu1D/2GmXzVUVNzj42rRGbeX4TpeoeB9DWc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JYIEdhEVxnPJ9Hs3FXb8Bd15jmHhV+5IDNYVU8UpFvA2wEj/Vaf9dqo5ufXovFWTY etl7jEOLcvegWqeDGy3hLaEaXurQRs4q4qIj8AmL5F1SNHEXGQjcdKRvtzLVARrq0N P0BdI35fi10XMh3Df81uSsnyoHz7ibFgEi5iYyScyD3Zr6f2vkxHseIAbKkx84x2dw H2JpZTrx+LCjlgnKRTKfEKZzG/0RlLgyu07wpdwgiDitshs1GtVS+zU/tzp3TbY1ON uUvn4t3n/p5sJ+MbkT/pKVSJlM23Q4imCIunkgH6LEPnyoxXTo5injoNeb6ZkmHWKY wpqnjocnXTQhQ== Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-53d82bea507so6836308a12.2; Sun, 15 Oct 2023 17:53:49 -0700 (PDT) X-Gm-Message-State: AOJu0YxYYcRz+OxukAjlgVU8Pr/jslFA+DMlbHdWwal97g4ybuUTKzp9 5QPVD7QoMWaPNfGLGduh+/5ywSgPGrzhKHuJ8VQ= X-Received: by 2002:a05:6402:40d0:b0:53e:2af1:e966 with SMTP id z16-20020a05640240d000b0053e2af1e966mr9698411edb.1.1697417627935; Sun, 15 Oct 2023 17:53:47 -0700 (PDT) MIME-Version: 1.0 References: <20231015150732.1991997-1-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Mon, 16 Oct 2023 08:53:36 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] set_thread_area.2: Add C-SKY document To: Alejandro Colomar Cc: arnd@arndb.de, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, Guo Ren Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 17:53:57 -0700 (PDT) On Mon, Oct 16, 2023 at 2:00=E2=80=AFAM Alejandro Colomar = wrote: > > Hi Guo, > > On Sun, Oct 15, 2023 at 11:07:32AM -0400, guoren@kernel.org wrote: > > From: Guo Ren > > > > C-SKY only needs set_thread_area, no need for get_thread_area, the > > same as MIPS. > > > > 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(-) > > > > 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. Oops, thanks. > > > .PP > > .BI "int syscall(SYS_set_thread_area, unsigned long " addr ); > > .PP > > @@ -42,17 +42,17 @@ These calls provide architecture-specific support f= or 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 var= iants); > > .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, > > -- > > 2.36.1 > > > > -- > --=20 Best Regards Guo Ren