lkml.org 
[lkml]   [2014]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 17/28] nios2: Signal handling support
From
On Thu, Apr 24, 2014 at 6:01 PM, Ley Foon Tan <lftan@altera.com> wrote:
> On Sun, Apr 20, 2014 at 3:29 AM, Richard Weinberger
> <richard.weinberger@gmail.com> 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);


\
 
 \ /
  Last update: 2014-04-24 13:01    [W:0.109 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site