treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / riscv / include / uapi / asm / ptrace.h
blob882547f6bd5c91d34c376ae81fe38f5634e8380a
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_PTRACE_H
7 #define _UAPI_ASM_RISCV_PTRACE_H
9 #ifndef __ASSEMBLY__
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 {
20 unsigned long pc;
21 unsigned long ra;
22 unsigned long sp;
23 unsigned long gp;
24 unsigned long tp;
25 unsigned long t0;
26 unsigned long t1;
27 unsigned long t2;
28 unsigned long s0;
29 unsigned long s1;
30 unsigned long a0;
31 unsigned long a1;
32 unsigned long a2;
33 unsigned long a3;
34 unsigned long a4;
35 unsigned long a5;
36 unsigned long a6;
37 unsigned long a7;
38 unsigned long s2;
39 unsigned long s3;
40 unsigned long s4;
41 unsigned long s5;
42 unsigned long s6;
43 unsigned long s7;
44 unsigned long s8;
45 unsigned long s9;
46 unsigned long s10;
47 unsigned long s11;
48 unsigned long t3;
49 unsigned long t4;
50 unsigned long t5;
51 unsigned long t6;
54 struct __riscv_f_ext_state {
55 __u32 f[32];
56 __u32 fcsr;
59 struct __riscv_d_ext_state {
60 __u64 f[32];
61 __u32 fcsr;
64 struct __riscv_q_ext_state {
65 __u64 f[64] __attribute__((aligned(16)));
66 __u32 fcsr;
68 * Reserved for expansion of sigcontext structure. Currently zeroed
69 * upon signal, and must be zero upon sigreturn.
71 __u32 reserved[3];
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 */