From patchwork Sun Jan 11 07:44:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Miller X-Patchwork-Id: 17783 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id D51E7DDFCA for ; Sun, 11 Jan 2009 18:44:59 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751065AbZAKHox (ORCPT ); Sun, 11 Jan 2009 02:44:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751131AbZAKHox (ORCPT ); Sun, 11 Jan 2009 02:44:53 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:48369 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751065AbZAKHow (ORCPT ); Sun, 11 Jan 2009 02:44:52 -0500 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 6A397C8C284; Sat, 10 Jan 2009 23:44:53 -0800 (PST) Date: Sat, 10 Jan 2009 23:44:53 -0800 (PST) Message-Id: <20090110.234453.254713982.davem@davemloft.net> To: reif@earthlink.net Cc: sam@ravnborg.org, sparclinux@vger.kernel.org Subject: Re: sparc32 broke From: David Miller In-Reply-To: <4968B701.7020001@earthlink.net> References: <20090110073321.GA3058@uranus.ravnborg.org> <20090109.233524.212791375.davem@davemloft.net> <4968B701.7020001@earthlink.net> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From: Robert Reif Date: Sat, 10 Jan 2009 09:56:01 -0500 > David Miller wrote: > > From: Sam Ravnborg > > Date: Sat, 10 Jan 2009 08:33:21 +0100 > > > > > >> The real fix should look like this: > >> > >> #ifdef __arch64__ > >> #define _NSIG_BPW 64 > >> #else > >> #define _NSIG_BPW 64 > >> #endif > >> > >> This is required because this header is exported to userspace > >> where we do not have access to CONFIG_* symbols. > >> > > > > I assume you meant to use "32" in the #else branch :-) > > This fixed it (with the 32). Thanks for testing Robert, I've just commited the following: sparc: Fix asm/signal.h for 32-bit. Fix a 32-bit sparc regression reported by Robert Reif. _NSIG_BPW needs to be 32 for 32-bit and 64 for 64-bit Tested-by: Robert Reif Signed-off-by: David S. Miller --- arch/sparc/include/asm/signal.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/sparc/include/asm/signal.h b/arch/sparc/include/asm/signal.h index 41535e7..cba4520 100644 --- a/arch/sparc/include/asm/signal.h +++ b/arch/sparc/include/asm/signal.h @@ -84,7 +84,11 @@ #define __OLD_NSIG 32 #define __NEW_NSIG 64 +#ifdef __arch64__ #define _NSIG_BPW 64 +#else +#define _NSIG_BPW 32 +#endif #define _NSIG_WORDS (__NEW_NSIG / _NSIG_BPW) #define SIGRTMIN 32