18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2012 Regents of the University of California
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _UAPI_ASM_RISCV_SIGCONTEXT_H
78c2ecf20Sopenharmony_ci#define _UAPI_ASM_RISCV_SIGCONTEXT_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <asm/ptrace.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/*
128c2ecf20Sopenharmony_ci * Signal context structure
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * This contains the context saved before a signal handler is invoked;
158c2ecf20Sopenharmony_ci * it is restored by sys_sigreturn / sys_rt_sigreturn.
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_cistruct sigcontext {
188c2ecf20Sopenharmony_ci	struct user_regs_struct sc_regs;
198c2ecf20Sopenharmony_ci	union __riscv_fp_state sc_fpregs;
208c2ecf20Sopenharmony_ci};
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#endif /* _UAPI_ASM_RISCV_SIGCONTEXT_H */
23