aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/asm-riscv/asm/sigcontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'original/uapi/asm-riscv/asm/sigcontext.h')
-rw-r--r--original/uapi/asm-riscv/asm/sigcontext.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/original/uapi/asm-riscv/asm/sigcontext.h b/original/uapi/asm-riscv/asm/sigcontext.h
index 84f2dfc..8c8712a 100644
--- a/original/uapi/asm-riscv/asm/sigcontext.h
+++ b/original/uapi/asm-riscv/asm/sigcontext.h
@@ -8,6 +8,19 @@
#include <asm/ptrace.h>
+/* The Magic number for signal context frame header. */
+#define RISCV_V_MAGIC 0x53465457
+#define END_MAGIC 0x0
+
+/* The size of END signal context header. */
+#define END_HDR_SIZE 0x0
+
+#ifndef __ASSEMBLY__
+
+struct __sc_riscv_v_state {
+ struct __riscv_v_ext_state v_state;
+} __attribute__((aligned(16)));
+
/*
* Signal context structure
*
@@ -16,7 +29,12 @@
*/
struct sigcontext {
struct user_regs_struct sc_regs;
- union __riscv_fp_state sc_fpregs;
+ union {
+ union __riscv_fp_state sc_fpregs;
+ struct __riscv_extra_ext_header sc_extdesc;
+ };
};
+#endif /*!__ASSEMBLY__*/
+
#endif /* _UAPI_ASM_RISCV_SIGCONTEXT_H */