Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754469AbaDXKRf (ORCPT ); Thu, 24 Apr 2014 06:17:35 -0400 Received: from b.ns.miles-group.at ([95.130.255.144]:1661 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754353AbaDXKRc (ORCPT ); Thu, 24 Apr 2014 06:17:32 -0400 Message-ID: <5358E4B9.1050308@nod.at> Date: Thu, 24 Apr 2014 12:17:29 +0200 From: Richard Weinberger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Ley Foon Tan CC: Linux-Arch , LKML , "linux-doc@vger.kernel.org" , cltang@codesourcery.com Subject: Re: [PATCH 17/28] nios2: Signal handling support References: <1397824031-4892-1-git-send-email-lftan@altera.com> <1397824031-4892-14-git-send-email-lftan@altera.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 24.04.2014 12:13, schrieb Ley Foon Tan: > On Thu, Apr 24, 2014 at 6:01 PM, Ley Foon Tan wrote: >> On Sun, Apr 20, 2014 at 3:29 AM, Richard Weinberger >> wrote: >> >>>> + >>>> + /* Default to using normal stack. */ >>>> + usp = regs->sp; >>>> + >>>> + /* This is the X/Open sanctioned signal stack switching. */ >>>> + if ((ka->sa.sa_flags & SA_ONSTACK) && (current->sas_ss_sp != 0)) { >>>> + if (!on_sig_stack(usp)) >>>> + usp = current->sas_ss_sp + current->sas_ss_size; >>>> + } >>> >>> You can use sigsp() here. >> Okay. >> > I just noticed that sigsp() have struct ksignal argument. We can use > sigsp() for nios2 because it doesn't have struct ksignal. > > unsigned long sigsp(unsigned long sp, struct ksignal *ksig); Did you at look at the struct ksignal definition and the clean series I've pointed you to? Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/