Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2032538rdg; Sun, 15 Oct 2023 08:07:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoKAq2kZO7mTQROYYsHfRvp+IsvZRofUrUoOlt7Pp4fREOQ80jwbEAWl64tEFvU4xD9wws X-Received: by 2002:a17:90a:1c7:b0:27d:4b6e:b405 with SMTP id 7-20020a17090a01c700b0027d4b6eb405mr5031099pjd.33.1697382478673; Sun, 15 Oct 2023 08:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697382478; cv=none; d=google.com; s=arc-20160816; b=UqtUlCbUTesGvWy3rd4iqpDcbT5F7954toQBaj5PFSV8uSEt4clx/Ztwuev0UScaPs drWdtvy9o+mwfW+xtrwt5+Xhc/YIabe5egtL7ISibG0e7VLOxLqHKKjJnMsIWwWAoZtB V8vLOapoJy1HooBsdoAg5eDtWnduZJKnuYtei1KqD2CX+iOLjsp5Wk+CLNpB/iVOx1wB W8+HHUDE6gPN0RYuBOVesUx8twwmzMpnqMiToHDydxAg1Yl/WnUtZjmlkqUHTFC7xA19 0kjejETu8/QWsSmcaHHzCL1/jQ5FyjjX4oETYSKouPWK1COfPIBBu20RdrxUoFad2yPR qIWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6/O7dLUNL/uKm4+jaXqeajHsuRKt4H14Wen0zgW0gsI=; fh=6CS4Is4ufbSDzvE2OKrB8RNR/m3Gw/E6lJrRDVr0n30=; b=GMR2bXxvepWENlRnJyVdT84CxbfawBF3d2qpZ6upp++8AIWnp4XvPIAC0ckXQCxye4 UXIdvCnH37PZhcJhn/4eGPnXuJ6WAJrIbMUF8ORMp5TLw3k7XLwjLHwjUhlOsTBfoE1O EKhE29VDhlLtbXyflbCe9sbwWGOxJGY+lN27ixw0Bwj8E25F2GtJUmu25garc/n0OkUg nN4RggByfXsj8jU6CjYEfAtzMLDkvHZFvnqp0vXlLaeEv4TC2HF/9rbaJBzOBV+THZ63 csjzqsk0g/uzzH/fXmyLe/jU+KXN9gwKqElm/WrOPB3JDYuI9H2QMMR0ownGFKLq5Ez/ U+jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUDwoaqu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o12-20020a170902d4cc00b001bddcd8c6acsi9294786plg.311.2023.10.15.08.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 08:07:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUDwoaqu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 6B9E4805D28A; Sun, 15 Oct 2023 08:07:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229641AbjJOPHn (ORCPT + 99 others); Sun, 15 Oct 2023 11:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjJOPHm (ORCPT ); Sun, 15 Oct 2023 11:07:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E238C1; Sun, 15 Oct 2023 08:07:41 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA4ABC433C8; Sun, 15 Oct 2023 15:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697382461; bh=dU1+zDYs7o2q2RyXQXfsLvbPI75qe4jPmXKLwqHpNjs=; h=From:To:Cc:Subject:Date:From; b=kUDwoaquaJQbE1ONP2vp9wPrN7ncHWGBFL6m91dmVUkxlJ3uAmC2KBxoDytDNlWcE CEIPSbmIUYSy4DAwqAqfwoBwLkCl5JHKbZGx7ERjEud6aR7JEIE5VubhWnTqFmj8W/ NZJ37GeaQPocx2XDwTjSDabpSsCfdc7f+2czlO2ou7pg62/RkWeHEoVP/r3Evo+4/m JVeylgrrKMt85nJrfbqKJiNJhguFN3EZX4Yg0Eq5oNuk/9GOl+GdrgzmqB84i1+fF+ hEFQCN9YOuzsVPrzzraEcVKTki/j42HLNF5y/VQm0D8+/ZJwdjNhZyveazDNhIWJMV GvBHcipTN38/g== From: guoren@kernel.org To: guoren@kernel.org, arnd@arndb.de, alx@kernel.org, mtk.manpages@gmail.com, alx.manpages@gmail.com Cc: linux-man@vger.kernel.org, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org, Guo Ren Subject: [PATCH] set_thread_area.2: Add C-SKY document Date: Sun, 15 Oct 2023 11:07:32 -0400 Message-Id: <20231015150732.1991997-1-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Sun, 15 Oct 2023 08:07:56 -0700 (PDT) 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 --- 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__) .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 variants); .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