summaryrefslogtreecommitdiffstats
path: root/arch/cris/include/uapi/asm/sigcontext.h
diff options
context:
space:
mode:
authorJesper Nilsson <jesper@jni.nu>2012-12-20 12:48:53 +0100
committerJesper Nilsson <jesper@jni.nu>2012-12-20 12:48:53 +0100
commite61ac0b05c53f5b56f3ea623c215437c09d8265b (patch)
tree70f97df839761058f2367d40c629b87e8e932a19 /arch/cris/include/uapi/asm/sigcontext.h
parent8e6b4dd1e1fbe81e7f9756eb8299632de641b2e1 (diff)
parente717abac8a9f65eee6de3bb37e10c6916bced483 (diff)
downloadop-kernel-dev-e61ac0b05c53f5b56f3ea623c215437c09d8265b.zip
op-kernel-dev-e61ac0b05c53f5b56f3ea623c215437c09d8265b.tar.gz
Merge tag 'disintegrate-cris-20121009' of git://git.infradead.org/users/dhowells/linux-headers into for-linus2
UAPI Disintegration 2012-10-09 * tag 'disintegrate-cris-20121009' of git://git.infradead.org/users/dhowells/linux-headers: UAPI: (Scripted) Disintegrate arch/cris/include/asm UAPI: (Scripted) Disintegrate arch/cris/include/arch-v32/arch UAPI: (Scripted) Disintegrate arch/cris/include/arch-v10/arch
Diffstat (limited to 'arch/cris/include/uapi/asm/sigcontext.h')
-rw-r--r--arch/cris/include/uapi/asm/sigcontext.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/cris/include/uapi/asm/sigcontext.h b/arch/cris/include/uapi/asm/sigcontext.h
new file mode 100644
index 0000000..a1d634e
--- /dev/null
+++ b/arch/cris/include/uapi/asm/sigcontext.h
@@ -0,0 +1,24 @@
+/* $Id: sigcontext.h,v 1.1 2000/07/10 16:32:31 bjornw Exp $ */
+
+#ifndef _ASM_CRIS_SIGCONTEXT_H
+#define _ASM_CRIS_SIGCONTEXT_H
+
+#include <asm/ptrace.h>
+
+/* This struct is saved by setup_frame in signal.c, to keep the current context while
+ a signal handler is executed. It's restored by sys_sigreturn.
+
+ To keep things simple, we use pt_regs here even though normally you just specify
+ the list of regs to save. Then we can use copy_from_user on the entire regs instead
+ of a bunch of get_user's as well...
+
+*/
+
+struct sigcontext {
+ struct pt_regs regs; /* needs to be first */
+ unsigned long oldmask;
+ unsigned long usp; /* usp before stacking this gunk on it */
+};
+
+#endif
+
OpenPOWER on IntegriCloud