Skip to contentSkip to conversation

SIGSTKFLT on alpha, mips and sparc

PATCH Ivan Kokshaysky 1 participant 1 message Sep 10, 2002

lore
Share & tools
lore
#0 lore raw

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

I would suggest something like this.

Ivan.

kernel/signal.c +9 -2
@@ -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 (\