From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [patch v3 14/36] Hexagon: Add signal functions Date: Sun, 11 Sep 2011 11:59:18 -0300 Message-ID: <1315753158.455.53.camel@pasglop> References: <20110909010847.294039464@codeaurora.org> <20110909010916.028280867@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org ([63.228.1.57]:38220 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754499Ab1IKO70 (ORCPT ); Sun, 11 Sep 2011 10:59:26 -0400 In-Reply-To: <20110909010916.028280867@codeaurora.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Richard Kuo Cc: linux-arch@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, Linas Vepstas On Thu, 2011-09-08 at 20:09 -0500, Richard Kuo wrote: > +#define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) > + > +struct sigframe { > + unsigned long pad[2]; /* Used to be signal tramp */ > + struct sigcontext sc; > + sigset_t mask; > +}; > + > +struct rt_sigframe { > + unsigned long pad[2]; /* Used to be signal tramp */ > + struct siginfo info; > + struct ucontext uc; > +}; Why did you make two types of signal frames ? It's an unnecessary complication... Dunno if you can still fix that (if you can still control your ABI that is), but you should look how ppc64 uses the same frame for RT and non-RT, avoids duplication of bugs :-) Cheers, Ben.