Received: by 10.213.65.68 with SMTP id h4csp1356389imn; Mon, 26 Mar 2018 06:05:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELsTFn+0K8Qb7WssjhNP7fEMwPqDNvp16i9V1h7uTkv+4wKaAHpX2ryTZPXrXafevASbvKYo X-Received: by 2002:a17:902:57d2:: with SMTP id g18-v6mr28388636plj.381.1522069531255; Mon, 26 Mar 2018 06:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522069531; cv=none; d=google.com; s=arc-20160816; b=k3gKTtLNI4h4IZDkxb/iWhi96XBs1XXYkqsVqCmWaD6+27QbxCg+rlPObDh69K0Oba YmugvS2PvVIqFrz9fSRW24QUqrM4ozgHwJgqAo4bTUP2twLv5jB1UXp6FohKzzUPdY7U 9iv+H9mB3w3iD7Ck7kmBCUwQViUH1WYGRfYJAm6koBqCOqP0rvxi9PpldUBuBpOgG1DS ecost47i5bp3A5jfpUpwDv3Ta9uMYXGE2ShNIwLIP6EDUmGTNcP0vnNFXPap9y2tJ3ky ic2Iv/Rmp4tbmE0e0HJ/txX7+4TR/4V9GWPu/OY0AO6H9sXVf9YUbXDQh+tykRL2+mXY BqOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hOSaCCTwDGx0L+Q++WOuvyQhWQY/qrsmJ5YRZwcTmFc=; b=mmgE/uqQNVlKI4HxHBrSIl/PhIc/iLwTj8spMxYMcosmZWm/8CYaHWbQfU1d59Zcjh lVnyo8TGUKFUo7asIUKIpV9Jd8mDUtOOBB65oeK+BOXLAOLk+FR5HE1gaBkJsJSZyMYN pXlq9waTJoaEuIEI9MlLy5RfCp3bHYlYXL1r4zVIJ5nc9L+jOJwRE13+4f+XPny3Yfnk SV2itRD+WzLWPTlsuKj9BGQNIpK3bhwhcrmwj/9hQW2l1ABZDF0bIuTX3wXHMEMJscaj x4etgrUC9snGDNNGSV0tMj+ckc3asgU90T5pkVt4b75XXBRm2ZWi2J1u9qTakZATP7AD VWoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FoqlC8JJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13-v6si900305plo.150.2018.03.26.06.05.15; Mon, 26 Mar 2018 06:05:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FoqlC8JJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751684AbeCZNEF (ORCPT + 99 others); Mon, 26 Mar 2018 09:04:05 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:40961 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbeCZNEC (ORCPT ); Mon, 26 Mar 2018 09:04:02 -0400 Received: by mail-qk0-f195.google.com with SMTP id s78so19908198qkl.8; Mon, 26 Mar 2018 06:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=hOSaCCTwDGx0L+Q++WOuvyQhWQY/qrsmJ5YRZwcTmFc=; b=FoqlC8JJ56cpEu4iPxj/VJEydgwTHrpcn1vbOqbboxa0t8kIRxJLt6YsMS4JcDP6gS 3veM94ESmiiaK5Sl9FrYnFSCIGcFnsd6N19LUfLJyhtx2I+UN95w9SGBlk8Gp/wVQmdZ eBy4j2mefdQiWhSWGpi/y02SRim3CZZYxPyHjLG5WYgCI7qUYcC0OtVr7kx2IbPgbHTQ yUw+h2rVQ+D5XqIdLOH/aEveMNwUAA3TBqakMqU1k6xYF2oLlhFrsNxl5jc1lr3KSLNu 5SjiMdJGGjCYK2TO76GrXiVlEHCYXpQZUrJRBDmxEm1M5SqLoJ9+UUIIQd06WZg+yMZQ eulA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=hOSaCCTwDGx0L+Q++WOuvyQhWQY/qrsmJ5YRZwcTmFc=; b=Js/t1i9/fK5snoGwLh5p1ALZ4GIE1a0YIHDkL78zaifs4oKTfGjtrz6GgOnNqqr2Qd UAbamtwH8hpUGse+/Bnk1cjpa3itBzeH/CzvHbg+83ARF3mwTu8D2Q9rVASQ1e6FMRFj bnvREY5Pb/SgMLeAHAsa3fdR77WPM73VM7UPFpFu73BAoi2lu4aec5qB5vWopr34dRip EgCbiU5cQMgyFEoOZE66dvJo9czsHD91lfw0Cp5e5u5vqsfFU0Kg3rSAsIThihT6SBKL zDHwGbtSd5eenVbijoeUeSTRDJuNAzrkDQZzqBuCfjiYgAHFTYNPCS6HpA2TGiekzsqj JH/A== X-Gm-Message-State: AElRT7G4AaiCIWsMgZLRwyXo0ZUJnhm+8+HiCcYdtV1YK3FSoZsUJgLY 5P7GVfyVH2aUSl9dxgO+/gOrnXslz0dABqyjHxk= X-Received: by 10.55.195.148 with SMTP id r20mr55050433qkl.173.1522069442042; Mon, 26 Mar 2018 06:04:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Mon, 26 Mar 2018 06:04:01 -0700 (PDT) In-Reply-To: References: From: Arnd Bergmann Date: Mon, 26 Mar 2018 15:04:01 +0200 X-Google-Sender-Auth: fvgHpK3dcAFZhR4W9SSHXtzxPDI Message-ID: Subject: Re: [PATCH 10/19] csky: Signal handling To: Guo Ren Cc: linux-arch , Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 18, 2018 at 8:51 PM, Guo Ren wrote: > Signed-off-by: Guo Ren > --- > arch/csky/include/uapi/asm/sigcontext.h | 33 +++ > arch/csky/include/uapi/asm/signal.h | 164 ++++++++++++++ > arch/csky/kernel/signal.c | 379 ++++++++++++++++++++++++++++++++ > 3 files changed, 576 insertions(+) Please have a look at arch/riscv and arch/nds32 for this, I think it can be simplified. This is an incompatible change of course, but when we change the system call ABI anyway, that is the right time to do it. > +#define NSIG 32 > +typedef unsigned long sigset_t; > + > +#endif /* __KERNEL__ */ > + > +#define SIGHUP 1 > +#define SIGINT 2 > +#define SIGQUIT 3 > +#define SIGILL 4 > +#define SIGTRAP 5 > +#define SIGABRT 6 > +#define SIGIOT 6 > +#define SIGBUS 7 > +#define SIGFPE 8 > +#define SIGKILL 9 > +#define SIGUSR1 10 > +#define SIGSEGV 11 > +#define SIGUSR2 12 > +#define SIGPIPE 13 In particular the constants should come from the asm-generic headers rather than being duplicated. If you need anything special, it may be better to modify the generic headers. Arnd