1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
3 * Copyright (C) 2012 Regents of the University of California
6 #ifndef _UAPI_ASM_RISCV_PTRACE_H
7 #define _UAPI_ASM_RISCV_PTRACE_H
11 #include <linux/types.h>
14 * User-mode register state for core dumps, ptrace, sigcontext
16 * This decouples struct pt_regs from the userspace ABI.
17 * struct user_regs_struct must form a prefix of struct pt_regs.
19 struct user_regs_struct {
54 struct __riscv_f_ext_state {
59 struct __riscv_d_ext_state {
64 struct __riscv_q_ext_state {
65 __u64 f[64] __attribute__((aligned(16)));
68 * Reserved for expansion of sigcontext structure. Currently zeroed
69 * upon signal, and must be zero upon sigreturn.
74 union __riscv_fp_state {
75 struct __riscv_f_ext_state f;
76 struct __riscv_d_ext_state d;
77 struct __riscv_q_ext_state q;
80 #endif /* __ASSEMBLY__ */
82 #endif /* _UAPI_ASM_RISCV_PTRACE_H */