2 * Copyright (C) 2012 Regents of the University of California
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef _UAPI_ASM_RISCV_PTRACE_H
15 #define _UAPI_ASM_RISCV_PTRACE_H
19 #include <linux/types.h>
22 * User-mode register state for core dumps, ptrace, sigcontext
24 * This decouples struct pt_regs from the userspace ABI.
25 * struct user_regs_struct must form a prefix of struct pt_regs.
27 struct user_regs_struct {
62 struct __riscv_f_ext_state {
67 struct __riscv_d_ext_state {
72 struct __riscv_q_ext_state {
73 __u64 f[64] __attribute__((aligned(16)));
76 * Reserved for expansion of sigcontext structure. Currently zeroed
77 * upon signal, and must be zero upon sigreturn.
82 union __riscv_fp_state {
83 struct __riscv_f_ext_state f;
84 struct __riscv_d_ext_state d;
85 struct __riscv_q_ext_state q;
88 #endif /* __ASSEMBLY__ */
90 #endif /* _UAPI_ASM_RISCV_PTRACE_H */