aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-06-24 17:41:09 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-06-24 17:41:09 -0400
commitca195cfec9fff622a61b1b72534e73360747f735 (patch)
treea98ce000e4ad01909155cad73e1ce5d1ff150117 /arch/arm/kernel
parentaca6ca10974aa78adfb47291722ce851160213e4 (diff)
[ARM] Add identifying number for non-rt sigframe
GDB couldn't reliably tell the difference between the old and new non-rt sigframes, so provide it with a number at the beginning which will never appear in the old sigframe, and hence provide gdb with a reliable way to tell the two apart. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/signal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
index 962851144099..c0ba8afee42f 100644
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -470,6 +470,11 @@ setup_frame(int usig, struct k_sigaction *ka, sigset_t *set, struct pt_regs *reg
470 if (!frame) 470 if (!frame)
471 return 1; 471 return 1;
472 472
473 /*
474 * Set uc.uc_flags to a value which sc.trap_no would never have.
475 */
476 __put_user_error(0x5ac3c35a, &frame->uc.uc_flags, err);
477
473 err |= setup_sigframe(frame, regs, set); 478 err |= setup_sigframe(frame, regs, set);
474 if (err == 0) 479 if (err == 0)
475 err = setup_return(regs, ka, frame->retcode, frame, usig); 480 err = setup_return(regs, ka, frame->retcode, frame, usig);