• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 extern uint32_t *const i386_esp_ptr;
2 extern uint64_t *const x86_64_rsp_ptr;
3 
4 /* <asm/ptrace.h> does not provide these definitions.  */
5 #define R15		0
6 #define R14		1
7 #define R13		2
8 #define R12		3
9 #define RBP		4
10 #define RBX		5
11 #define R11		6
12 #define R10		7
13 #define R9		8
14 #define R8		9
15 #define RAX		10
16 #define RCX		11
17 #define RDX		12
18 #define RSI		13
19 #define RDI		14
20 #define ORIG_RAX	15
21 #define RIP		16
22 #define CS		17
23 #define EFLAGS		18
24 #define RSP		19
25 #define SS		20
26 #define FS_BASE		21
27 #define GS_BASE		22
28 #define DS		23
29 #define ES		24
30 #define FS		25
31 #define GS		26
32