1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <asm/ptrace.h> /* needed for NUM_CR_WORDS */
6 #include "compat_linux.h" /* needed for psw_compat_t */
8 struct compat_per_struct_kernel {
9 __u32 cr9; /* PER control bits */
10 __u32 cr10; /* PER starting address */
11 __u32 cr11; /* PER ending address */
12 __u32 bits; /* Obsolete software bits */
13 __u32 starting_addr; /* User specified start address */
14 __u32 ending_addr; /* User specified end address */
15 __u16 perc_atmid; /* PER trap ATMID */
16 __u32 address; /* PER trap instruction address */
17 __u8 access_id; /* PER trap access identification */
20 struct compat_user_regs_struct
26 /* nb: there's a 4-byte hole here */
29 * These per registers are in here so that gdb can modify them
30 * itself as there is no "official" ptrace interface for hardware
31 * watchpoints. This is the way intel does it.
33 struct compat_per_struct_kernel per_info;
34 u32 ieee_instruction_pointer; /* obsolete, always 0 */
38 /* We start with the registers, to mimic the way that "memory"
39 is returned from the ptrace(3,...) function. */
40 struct compat_user_regs_struct regs;
41 /* The rest of this junk is to help gdb figure out what goes where */
42 u32 u_tsize; /* Text segment size (pages). */
43 u32 u_dsize; /* Data segment size (pages). */
44 u32 u_ssize; /* Stack segment size (pages). */
45 u32 start_code; /* Starting virtual address of text. */
46 u32 start_stack; /* Starting virtual address of stack area.
47 This is actually the bottom of the stack,
48 the top of the stack is always found in the
50 s32 signal; /* Signal that caused the core dump. */
51 u32 u_ar0; /* Used by gdb to help find the values for */
53 u32 magic; /* To uniquely identify a core file */
54 char u_comm[32]; /* User command that was responsible */
64 #endif /* _PTRACE32_H */