aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/include/asm/sigcontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-headers/include/asm/sigcontext.h')
-rw-r--r--linux-headers/include/asm/sigcontext.h43
1 files changed, 8 insertions, 35 deletions
diff --git a/linux-headers/include/asm/sigcontext.h b/linux-headers/include/asm/sigcontext.h
index c762962..1a65e11 100644
--- a/linux-headers/include/asm/sigcontext.h
+++ b/linux-headers/include/asm/sigcontext.h
@@ -1,43 +1,16 @@
#ifndef _ASM_RISCV_SIGCONTEXT_H
#define _ASM_RISCV_SIGCONTEXT_H
-/* This struct is saved by setup_frame in signal.c, to keep the current
- * context while a signal handler is executed. It is restored by sys_sigreturn.
- */
+#include <asm/ptrace.h>
+/* Signal context structure
+ *
+ * This contains the context saved before a signal handler is invoked;
+ * it is restored by sys_sigreturn / sys_rt_sigreturn.
+ */
struct sigcontext {
- unsigned long epc;
- unsigned long ra;
- unsigned long sp;
- unsigned long gp;
- unsigned long tp;
- unsigned long t0;
- unsigned long t1;
- unsigned long t2;
- unsigned long s0;
- unsigned long s1;
- unsigned long a0;
- unsigned long a1;
- unsigned long a2;
- unsigned long a3;
- unsigned long a4;
- unsigned long a5;
- unsigned long a6;
- unsigned long a7;
- unsigned long s2;
- unsigned long s3;
- unsigned long s4;
- unsigned long s5;
- unsigned long s6;
- unsigned long s7;
- unsigned long s8;
- unsigned long s9;
- unsigned long s10;
- unsigned long s11;
- unsigned long t3;
- unsigned long t4;
- unsigned long t5;
- unsigned long t6;
+ struct user_regs_struct sc_regs;
+ struct user_fpregs_struct sc_fpregs;
};
#endif /* _ASM_RISCV_SIGCONTEXT_H */