master
h 32 lines 775 Bytes
Raw
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #ifndef I386_TARGET_PTRACE_H
4 #define I386_TARGET_PTRACE_H
5
6 /*
7 * Note that arch/x86/include/uapi/asm/ptrace.h (struct pt_regs) and
8 * arch/x86/include/asm/user_32.h (struct user_regs_struct) have the
9 * same layout, though the exact types differ (int vs long vs unsigned).
10 * Define user_regs_struct because that's what's actually used.
11 */
12 struct target_user_regs_struct {
13 abi_ulong bx;
14 abi_ulong cx;
15 abi_ulong dx;
16 abi_ulong si;
17 abi_ulong di;
18 abi_ulong bp;
19 abi_ulong ax;
20 abi_ulong ds;
21 abi_ulong es;
22 abi_ulong fs;
23 abi_ulong gs;
24 abi_ulong orig_ax;
25 abi_ulong ip;
26 abi_ulong cs;
27 abi_ulong flags;
28 abi_ulong sp;
29 abi_ulong ss;
30 };
31
32 #endif /* I386_TARGET_PTRACE_H */