1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
2 /*
3  * Copyright (C) 2012 Regents of the University of California
4  */
5 
6 #ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H
7 #define _UAPI_ASM_RISCV_SIGCONTEXT_H
8 
9 #include <asm/ptrace.h>
10 
11 /*
12  * Signal context structure
13  *
14  * This contains the context saved before a signal handler is invoked;
15  * it is restored by sys_sigreturn / sys_rt_sigreturn.
16  */
17 struct sigcontext {
18 	struct user_regs_struct sc_regs;
19 	union __riscv_fp_state sc_fpregs;
20 };
21 
22 #endif /* _UAPI_ASM_RISCV_SIGCONTEXT_H */
23