1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#ifndef _UAPI__ASM_PTRACE_H
20#define _UAPI__ASM_PTRACE_H
21
22#include <linux/types.h>
23
24#include <asm/hwcap.h>
25
26
27
28
29
30#define PSR_MODE_EL0t 0x00000000
31#define PSR_MODE_EL1t 0x00000004
32#define PSR_MODE_EL1h 0x00000005
33#define PSR_MODE_EL2t 0x00000008
34#define PSR_MODE_EL2h 0x00000009
35#define PSR_MODE_EL3t 0x0000000c
36#define PSR_MODE_EL3h 0x0000000d
37#define PSR_MODE_MASK 0x0000000f
38
39
40#define PSR_MODE32_BIT 0x00000010
41
42
43#define PSR_F_BIT 0x00000040
44#define PSR_I_BIT 0x00000080
45#define PSR_A_BIT 0x00000100
46#define PSR_D_BIT 0x00000200
47#define PSR_PAN_BIT 0x00400000
48#define PSR_Q_BIT 0x08000000
49#define PSR_V_BIT 0x10000000
50#define PSR_C_BIT 0x20000000
51#define PSR_Z_BIT 0x40000000
52#define PSR_N_BIT 0x80000000
53
54
55
56
57#define PSR_f 0xff000000
58#define PSR_s 0x00ff0000
59#define PSR_x 0x0000ff00
60#define PSR_c 0x000000ff
61
62
63#ifndef __ASSEMBLY__
64
65
66
67
68struct user_pt_regs {
69 __u64 regs[31];
70 __u64 sp;
71 __u64 pc;
72 __u64 pstate;
73};
74
75struct user_fpsimd_state {
76 __uint128_t vregs[32];
77 __u32 fpsr;
78 __u32 fpcr;
79};
80
81struct user_hwdebug_state {
82 __u32 dbg_info;
83 __u32 pad;
84 struct {
85 __u64 addr;
86 __u32 ctrl;
87 __u32 pad;
88 } dbg_regs[16];
89};
90
91#endif
92
93#endif
94