mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* SIGSTKFLT on alpha, mips and sparc
@ 2002-09-10 13:27 Ivan Kokshaysky
  0 siblings, 0 replies; only message in thread
From: Ivan Kokshaysky @ 2002-09-10 13:27 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel

SIGSTKFLT (stack fault on coprocessor) is not defined on these
platforms, so signal.c won't compile.

I would suggest something like this.

Ivan.

--- 2.5.34/kernel/signal.c	Tue Sep 10 01:15:36 2002
+++ linux/kernel/signal.c	Tue Sep 10 11:27:46 2002
@@ -75,10 +75,17 @@ int max_queued_signals = 1024;
 
 #define M(sig) (1UL << (sig))
 
+/* SIGSTKFLT does not exist on some architectures */
+#ifdef	SIGSTKFLT
+#define	M_SIGSTKFLT	M(SIGSTKFLT)
+#else
+#define	M_SIGSTKFLT	0
+#endif
+
 #define SIG_USER_SPECIFIC_MASK (\
 	M(SIGILL)    |  M(SIGTRAP)   |  M(SIGABRT)   |  M(SIGBUS)    | \
 	M(SIGFPE)    |  M(SIGSEGV)   |  M(SIGPIPE)   |  M(SIGXFSZ)   | \
-	M(SIGPROF)   |  M(SIGSYS)    |  M(SIGSTKFLT) |  M(SIGCONT)   )
+	M(SIGPROF)   |  M(SIGSYS)    |  M_SIGSTKFLT  |  M(SIGCONT)   )
 
 #define SIG_USER_LOAD_BALANCE_MASK (\
         M(SIGHUP)    |  M(SIGINT)    |  M(SIGQUIT)   |  M(SIGUSR1)   | \
@@ -95,7 +102,7 @@ int max_queued_signals = 1024;
 	M(SIGKILL)   |  M(SIGUSR1)   |  M(SIGSEGV)   |  M(SIGUSR2)   | \
 	M(SIGPIPE)   |  M(SIGALRM)   |  M(SIGTERM)   |  M(SIGXCPU)   | \
 	M(SIGXFSZ)   |  M(SIGVTALRM) |  M(SIGPROF)   |  M(SIGPOLL)   | \
-	M(SIGSYS)    |  M(SIGSTKFLT) |  M(SIGPWR)    |  M(SIGCONT)   | \
+	M(SIGSYS)    |  M_SIGSTKFLT  |  M(SIGPWR)    |  M(SIGCONT)   | \
         M(SIGSTOP)   |  M(SIGTSTP)   |  M(SIGTTIN)   |  M(SIGTTOU)   )
 
 #define SIG_KERNEL_ONLY_MASK (\

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-10 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10 13:27 SIGSTKFLT on alpha, mips and sparc Ivan Kokshaysky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®