Received: by 10.213.65.68 with SMTP id h4csp216380imn; Mon, 26 Mar 2018 19:43:00 -0700 (PDT) X-Google-Smtp-Source: AG47ELsHsPbntON/WVWte197Y70l0vO2yQ8NROyOH9E4lLvB8CdyxA3JDmu9UlaFf4AX0Hq6+YwG X-Received: by 2002:a17:902:aa48:: with SMTP id c8-v6mr42161999plr.361.1522118580866; Mon, 26 Mar 2018 19:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522118580; cv=none; d=google.com; s=arc-20160816; b=LDx8VM/sPH7sYbouLt8NaHwPpeDAhQl/r8BzPpG0V5aPM3QNBac7A1f3wf5QU4rh3F rsM8ETTTpUAU5HGn0Quw+cHE8TyW5ThcigaKcwUOUPPtyu+r+QF5I7sJvfQqRQrOAi94 qEoD1FtfdyGQuHdmoKHr6J1QKUtW/INCPYF4LfgUEgZkMRw4W46FbFBEkC+fjP8VYWZl E5yVBO1KzxkDS8Vs61NCxRD8t3Zr0Aanchevk+XuGS+BXWxJ5Uzy1IHQVVfKkrhP+T6X vQtcXISHhKDQxnC91nW7HYlPvCmEU6R/0EIZudfiLHWNprihbVgokgWd1luOhDMQNOMI EI9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=1G9cb/LULMxaOzs9WqpFpBtVRhP/wVP3KUHqJ8mkdEk=; b=Io+3ZW+NTNwRfRkK4MqDZ2WVjLuTcnPpP4Zw30K2U2VSRvCXGRzwjTZJCmyiBB6T+3 qF7C8nTbj3NFl5mA8np2ij6KP1eQmbxc73gb5yrO4zW4FIU7nVPdK1d3cXmQ7JK7q3Hp CjuchXphCopK+J3Nso2XWfGbHXFR7QGRTjWhpmAId5b940mJDZ2OZWuuFO4pu6DswhF6 oEopgRxF+UkqduD6aWUWD+lih5XSVby5z6jmW6YCl+HtEGvP0CM0vsJSic7IBRHDIZNb a5r8DCmQJM/hIYYpX9FQuYcVXQgPkhaVOOBi0ofCwR9BfmXA5syIRq6DFRE8Xke1LQqK dwxw== ARC-Authentication-Results: i=1; mx.google.com; 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 v11si61460pff.189.2018.03.26.19.42.46; Mon, 26 Mar 2018 19:43:00 -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; 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 S1752454AbeC0ClV (ORCPT + 99 others); Mon, 26 Mar 2018 22:41:21 -0400 Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:49004 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752027AbeC0ClT (ORCPT ); Mon, 26 Mar 2018 22:41:19 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.09260181|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03296;MF=ren_guo@c-sky.com;NM=1;PH=DS;RN=10;RT=10;SR=0;TI=SMTPD_---.BSY0E11_1522118471; Received: from localhost(mailfrom:ren_guo@c-sky.com fp:223.93.147.148) by smtp.aliyun-inc.com(10.147.42.16); Tue, 27 Mar 2018 10:41:11 +0800 Date: Tue, 27 Mar 2018 10:41:11 +0800 From: Guo Ren To: Arnd Bergmann 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 Subject: Re: [PATCH 10/19] csky: Signal handling Message-ID: <20180327024111.GB11454@guoren> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 03:04:01PM +0200, Arnd Bergmann wrote: > 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. Ok. > > > > +#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. Ok, use asm-generic. Best Regards Guo Ren