[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5358E27F.2000206@nod.at>
Date: Thu, 24 Apr 2014 12:07:59 +0200
From: Richard Weinberger <richard@....at>
To: Ley Foon Tan <lftan@...era.com>
CC: Linux-Arch <linux-arch@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
cltang@...esourcery.com
Subject: Re: [PATCH 17/28] nios2: Signal handling support
Am 24.04.2014 12:01, schrieb Ley Foon Tan:
> On Sun, Apr 20, 2014 at 3:29 AM, Richard Weinberger
>>> +
>>> + push_cache((unsigned long) &frame->retcode);
>>> +
>>> + /* Set up registers for signal handler */
>>> + regs->sp = (unsigned long) frame;
>>> + regs->r4 = (unsigned long) (current_thread_info()->exec_domain
>>> + && current_thread_info()->exec_domain->signal_invmap
>>> + && sig < 32
>>> + ? current_thread_info()->exec_domain->signal_invmap[sig]
>>> + : sig);
>>
>> Does nios2 really need signal translation and supports execution domains?
> Nios2 have one default "default_exec_domain" only. So, we can change
> this to "regs->r4 = sig;".
Nice.
> BTW, most of the architectures have similar code.
Yep, because everyone is copy&pasting from each others without thinking. 8)
There is already a cleanup going on: https://lkml.org/lkml/2014/3/2/198
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists