summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@kanga.twiddle.home>2004-09-20 10:55:21 -0700
committerRichard Henderson <rth@kanga.twiddle.home>2004-09-20 10:55:21 -0700
commit3b59e61496f04539a50c83b6dc98e8c498aa033f (patch)
treeab784d9bde36e8029a249d1f95674a4e58bdbbb9
parentceee83c0d9fc7a525002274d730f18a6d93e1854 (diff)
[ALPHA] Add compile-time assert concerning rt_sigframe layout.
-rw-r--r--arch/alpha/kernel/signal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/alpha/kernel/signal.c b/arch/alpha/kernel/signal.c
index 202714c53b6e..94ff1b330ce4 100644
--- a/arch/alpha/kernel/signal.c
+++ b/arch/alpha/kernel/signal.c
@@ -228,6 +228,12 @@ struct rt_sigframe
unsigned int retcode[3];
};
+/* If this changes, userland unwinders that Know Things about our signal
+ frame will break. Do not undertake lightly. It also implies an ABI
+ change wrt the size of siginfo_t, which may cause some pain. */
+extern char compile_time_assert
+ [offsetof(struct rt_sigframe, uc.uc_mcontext) == 176 ? 1 : -1];
+
#define INSN_MOV_R30_R16 0x47fe0410
#define INSN_LDI_R0 0x201f0000
#define INSN_CALLSYS 0x00000083