From a1df417e74aa6dae7352dc8cbb0ad471af5b7c69 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Mon, 25 Apr 2016 10:00:44 -0400 Subject: initial Olimex linux tree from Daniel, originally Feb 3, 2016 --- linux/arch/cris/include/uapi/asm/sigcontext.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 linux/arch/cris/include/uapi/asm/sigcontext.h (limited to 'linux/arch/cris/include/uapi/asm/sigcontext.h') diff --git a/linux/arch/cris/include/uapi/asm/sigcontext.h b/linux/arch/cris/include/uapi/asm/sigcontext.h new file mode 100644 index 00000000..a1d634e1 --- /dev/null +++ b/linux/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 + +/* 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 + -- cgit