drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / include / uapi / asm / sigcontext.h
blobcd4f175dc8376327dd3efa6e5d6d3ccf00c9e945
1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
2 /*
3 * Copyright (C) 2012 Regents of the University of California
4 */
6 #ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H
7 #define _UAPI_ASM_RISCV_SIGCONTEXT_H
9 #include <asm/ptrace.h>
11 /* The Magic number for signal context frame header. */
12 #define RISCV_V_MAGIC 0x53465457
13 #define END_MAGIC 0x0
15 /* The size of END signal context header. */
16 #define END_HDR_SIZE 0x0
18 #ifndef __ASSEMBLY__
20 struct __sc_riscv_v_state {
21 struct __riscv_v_ext_state v_state;
22 } __attribute__((aligned(16)));
25 * Signal context structure
27 * This contains the context saved before a signal handler is invoked;
28 * it is restored by sys_rt_sigreturn.
30 struct sigcontext {
31 struct user_regs_struct sc_regs;
32 union {
33 union __riscv_fp_state sc_fpregs;
34 struct __riscv_extra_ext_header sc_extdesc;
38 #endif /*!__ASSEMBLY__*/
40 #endif /* _UAPI_ASM_RISCV_SIGCONTEXT_H */