Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp42350pxu; Tue, 24 Nov 2020 18:01:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1aThSRhngqw8bdQhskHTc02eGlTdkEVvQ9rPHQUgD88sXROOWA9UgkYagGrZAwAvCXnc9 X-Received: by 2002:aa7:d443:: with SMTP id q3mr1431932edr.262.1606269688771; Tue, 24 Nov 2020 18:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606269688; cv=none; d=google.com; s=arc-20160816; b=z85JIiVt0xodmjyQ1dXX62/1b5F4dgaIp2NBZohklvd3jlRhsqfQK9u1FV9fyTOJMu yJ0rQq9YAAnR2tmhK3vFz1ZkgopyIb5b4hhdjaYQPjAVEZC41UNYMlrX1cEsEyK9gh+x RzMYDfm6acO2YzQDSNL4ZsQFBb0po18GWFVtXE/irCUN88HYAlFqcSrlaVQ+HSwyUJPz 05XzIwZcH+E4WukDFOn/MilwV36WxDo4pEF094eLn7mPFBd/6yEk2CdfALZqaQSjhHUN hFnIMeHypQv62RVKwE+uDaGPq2ZoIUgfAT9sRuiLvJ9ZNJAJniwDQT9BerN+UsbAwz7c 1Rcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:cc:dkim-signature; bh=WGjMjhDgXXoCLBlcKSk4hWoUaI6g3sVHouK3ZhWCgnc=; b=QurU+5HqHtfbre0b7hSawVXsIGUiFVH9sl6FKhJufI7Zq6l24kz5HX18McNQ7F+t9+ vsDmDIAdMUcc10t+E1PeYNgaG1HYvMmolHGwfC17ErUnGvdDDNFFG291tBjHo8XohHlB sQlzHHPmX2KTX2saxTQgcE3qeY6lEjaFRSySEKnAay/X83S3ZWzFlfvNpHKYPt0McFHr LieBa1Seel0rK46+iivP7QPDTICd0H7AVR7ZQUY1E9o5Jbd/g6yZlDWPS/KEk6I7TF/M ySEuSPP+ZXOEQ5DUSNaHgc2MCnpNdetj/Y/QiCanf9z2ThL/QZx0eWdasbS+uPYHIHPk BUkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NaGxdcM1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si406665edw.86.2020.11.24.18.01.06; Tue, 24 Nov 2020 18:01:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NaGxdcM1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731509AbgKXJve (ORCPT + 99 others); Tue, 24 Nov 2020 04:51:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728886AbgKXJvd (ORCPT ); Tue, 24 Nov 2020 04:51:33 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52406C0613D6; Tue, 24 Nov 2020 01:51:33 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id x22so1826147wmc.5; Tue, 24 Nov 2020 01:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WGjMjhDgXXoCLBlcKSk4hWoUaI6g3sVHouK3ZhWCgnc=; b=NaGxdcM1DZbTt+aJyT7J4y2dHsphM3hQ2x4/r90BVRCSCeq1AmIJG59rPAS1C0eBWA KvGsPYRYPioZ4Y1dtF/G9L99zOMmzatFZDAlM6Mkn59rw/VKovZovDsKdE66Loveb7h8 C3AScoLwSltnhSQ+xTcIuBygt4mhQJUxm4qJ0IuJIs1Ki7xE+YcEyS2sYn6ZvIpVyvxC lLcTaUicEEjoCWVKKHwQ1glbaDSVZZbxCPH927KtCZkRXJ8FzZmkJTAZGcLiag8D/sI0 SwvncCF5DZbD6CPFODcL+kzATUTEotMFj1IY1SlSRrFsH+p6DK74zNX8Opy2gy59/YqJ DrAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WGjMjhDgXXoCLBlcKSk4hWoUaI6g3sVHouK3ZhWCgnc=; b=kq8CT/OqdNPBYCDe8fGGTdo/vJrVIyHyBDzQAhSdnVEVbRz+wdbCRcIQ3a0MioUysc KXgD3gEm/xB2/atWYVqRqY16zY59ql+sBHJsion6NMmX0duCSt/LtVibjqj3wgx1Vnsn 9dUOyuVTQtw5Ux8fD7bwox5r12nGKy6ZyBQVhTcM6n904dKeptkmNUWfL2j64zPmcmFY 2G4YUe9R9IjqAOCGDSh6fyeXmnwSjZCTDPSU4itBMHyxsSLfmE4pYauXlYCdWXWrPNDR PsYg3fZ4XYNQyRc9jXQLEfk0SFvCA7QnJTlPppkWNI4dojUpbgBBtTA4oJ5bOUPWYi/T SW9A== X-Gm-Message-State: AOAM533TmK6S5dX6/PNTiaf6pQA3MXi/istLeuGMjcs2J3BXQV5ouzzo 7dsEdTggHYEmP9Nrgxa3Z80= X-Received: by 2002:a1c:5f08:: with SMTP id t8mr3399394wmb.84.1606211492014; Tue, 24 Nov 2020 01:51:32 -0800 (PST) Received: from ?IPv6:2001:a61:24b3:de01:7310:e730:497d:ea6a? ([2001:a61:24b3:de01:7310:e730:497d:ea6a]) by smtp.gmail.com with ESMTPSA id 2sm14881820wrq.87.2020.11.24.01.51.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2020 01:51:31 -0800 (PST) Cc: mtk.manpages@gmail.com, linux-man , linux-kernel , Guo Ren , linux-csky@vger.kernel.org, Arnd Bergmann Subject: Re: set_thread_area.2: csky architecture undocumented To: "Alejandro Colomar (man-pages)" References: <014e670b-2a11-3deb-4e7e-bfe9defd8597@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: Date: Tue, 24 Nov 2020 10:51:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <014e670b-2a11-3deb-4e7e-bfe9defd8597@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, On 11/23/20 10:31 PM, Alejandro Colomar (man-pages) wrote: > Hi Michael, > > SYNOPSIS > #include > > #if defined __i386__ || defined __x86_64__ > # include > > int get_thread_area(struct user_desc *u_info); > int set_thread_area(struct user_desc *u_info); > > #elif defined __m68k__ > > int get_thread_area(void); > int set_thread_area(unsigned long tp); > > #elif defined __mips__ > > int set_thread_area(unsigned long addr); > > #endif > > Note: There are no glibc wrappers for these system calls; see > NOTES. > > > $ grep -rn 'SYSCALL_DEFINE.*et_thread_area' > arch/csky/kernel/syscall.c:6: > SYSCALL_DEFINE1(set_thread_area, unsigned long, addr) > arch/mips/kernel/syscall.c:86: > SYSCALL_DEFINE1(set_thread_area, unsigned long, addr) > arch/x86/kernel/tls.c:191: > SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, u_info) > arch/x86/kernel/tls.c:243: > SYSCALL_DEFINE1(get_thread_area, struct user_desc __user *, u_info) > arch/x86/um/tls_32.c:277: > SYSCALL_DEFINE1(set_thread_area, struct user_desc __user *, user_desc) > arch/x86/um/tls_32.c:325: > SYSCALL_DEFINE1(get_thread_area, struct user_desc __user *, user_desc) > > > See kernel commit 4859bfca11c7d63d55175bcd85a75d6cee4b7184 > > > I'd change > - #elif defined __mips__ > + #elif defined(__mips__ || __csky__) > > and then change the rest of the text to add csky when appropriate. > Am I correct? AFAICT, you are correct. I think the reason that csky is missing is that the architecture was added after this manual pages was added. Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/