sparc: Fix asm/signal.h for 32-bit.
authorDavid S. Miller <davem@davemloft.net>
Sun, 11 Jan 2009 07:44:45 +0000 (23:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jan 2009 07:44:45 +0000 (23:44 -0800)
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 <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/signal.h

index 41535e77b2551e7f7bb65a597786879207579684..cba45206b7f2e6eb975da848a4bbcbe4f190eb4e 100644 (file)
 
 #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