lkml.org 
[lkml]   [2002]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectSIGSTKFLT on alpha, mips and sparc
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 (\
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.031 / U:1.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site