Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1271420pxu; Mon, 23 Nov 2020 16:38:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfxUi0udHqyuGE/1+cE24DqgpD/56VTzkU0OcZwhKbPGEmdZKphxoe+RIRx1Q8fMnEFBob X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr2031601ejn.424.1606178320418; Mon, 23 Nov 2020 16:38:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606178320; cv=none; d=google.com; s=arc-20160816; b=tIhLKRtFgSMJutbOEf6JIierUbHYHHCwpCm3WyaQS/b9shG3zNl9NO72le8Ipt6/r0 JAxGUVv16fkjzlKwBMue/HEa5m41zdt6b8tWdhy3zFkw5vvNMBXD5iXPgpf+OykoA/WT HDp1/pNf9uSS/UuKnD4xKSlf29C48QW+rQoWTbw4hA2H8kiqWpmNpC/5xzuRR0T/tj/Z CRJYsqmz5uAUL2/jH0T6mSNGmTcnEJJ+RU3XbnGdL5xs0WqCERfQwD7QlS9D+jMHrtOu yv8qMh2Tncv6BvubUiHSezAAEY7R7WfQpOs4UPKmG2NKphJdpQmTx8x/TEngcz2/Ethw Dqqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=K9R5oqAXBKA/Zhx7gAhGP8yDRLYa4CIt7epTBbDa3C4=; b=y+c7CA5gNtHq3cEYGv4NZSsImXP9LhMpl4jQobgBAUQRJVmrzoKKTcdRhuBZ/XywP0 EvW4b39+okBtZ6rpo88ni0khoCSgBF0ab7KrTmmGs1XjC6Co6iCirTzAtv6jhvP8+2zb +MuTvo3S5JUKt1/pqm2XXYnp9PqNB3HiznM+WWTCr1AkF6VfazSdmOGJXZT0EOQxg1KV CPeAAZyKaOeOZUAy4gXd2zUOhsWiZHrGN4KJM6z2NZ+J9Yc9J7LPxy5OjPLcZFjE0qtX 6/RJDQ4mxtDXrehIVBKlIKNZrJ5utn2Dns39F9wyakcbBW0gwj1Qd+zeGplVblsm0BUm 42Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LbQeigwn; 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 k22si7752693eds.368.2020.11.23.16.38.17; Mon, 23 Nov 2020 16:38:40 -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=LbQeigwn; 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 S1731152AbgKWVsj (ORCPT + 99 others); Mon, 23 Nov 2020 16:48:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbgKWVsi (ORCPT ); Mon, 23 Nov 2020 16:48:38 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9512AC0613CF; Mon, 23 Nov 2020 13:48:38 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id y74so8018483oia.11; Mon, 23 Nov 2020 13:48:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=K9R5oqAXBKA/Zhx7gAhGP8yDRLYa4CIt7epTBbDa3C4=; b=LbQeigwnMD/GKmhn9qyAbPqOO6KE33QQUgNo5VU2h2K2gQOmdYS9WIVLKAHutJT2ds 2hw+9nPpi2G1vgn6vpN/4S77lWeoFGm/AcXw4wlUg/uU3i5SrnAYwSPn3F9lJBfVBQjd gOFATw5acqyonZ7zbog5x8QIq81wPaTXz0SMUElPuA9lMh/Gqx1Mwmf5PoOj3FtshBIB MWWlW7jDTaGMDq2OMzG/lT112myQhmZGBO9Zbt7af2z6+mlVxoYn3cLA4CmyIkDs3xww VHdFMc1HxHktAsH996P5eUxDEkqQXnO70MAbtwm9qAa4lm1GICZjrOsArM9g37ska8fN 6IKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=K9R5oqAXBKA/Zhx7gAhGP8yDRLYa4CIt7epTBbDa3C4=; b=roUjSVZpWYff/Ga55rQ/c0hSP5BJXC9QeahSE5iKRNDcn/TOB49pewwK/L+erYRJ8u M4SS6PQO4XtGXnweb8RLHtmjISk6F7SF+7Hl+LWWdNXEN9Q1AbvVEwWU1KUktGS1yeZe Z/jHRLO1LVQLIUUvwOzuqNyLHHkgcMEur6GCWKOmmAb9mS4M6HyTPbszxFpQx9E63QPZ fE1PALwhjTknAUpGQcebVdVNIP/0UWZszsq6cptJe87WYchjOHxLPUukvzXIRR25BR9a RYdqad4gR1IQQXz3dv/6IviGOtnGU5AkW1B2IJAabuCZKSERCHY/F9P9WBFFffdJ822v MjgQ== X-Gm-Message-State: AOAM533UcMPeT9994krhMXj7GcwoWp87j4Q2X4wJOXAXShXmDl7bWKM2 gvkALVPRoVK+iFu8WDrgObKPsbQa3OSL5/ZphrE= X-Received: by 2002:aca:b706:: with SMTP id h6mr706393oif.177.1606168118052; Mon, 23 Nov 2020 13:48:38 -0800 (PST) MIME-Version: 1.0 References: <014e670b-2a11-3deb-4e7e-bfe9defd8597@gmail.com> In-Reply-To: <014e670b-2a11-3deb-4e7e-bfe9defd8597@gmail.com> Reply-To: mtk.manpages@gmail.com From: "Michael Kerrisk (man-pages)" Date: Mon, 23 Nov 2020 22:48:26 +0100 Message-ID: Subject: Re: set_thread_area.2: csky architecture undocumented To: "Alejandro Colomar (man-pages)" Cc: linux-man , linux-kernel , Guo Ren , linux-csky@vger.kernel.org, Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Alex, On Mon, 23 Nov 2020 at 22:31, 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? As far as I can tell, you are correct. Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/