]> git.saurik.com Git - apple/xnu.git/blame - bsd/dev/dtrace/scripts/regs_x86_64.d
xnu-6153.11.26.tar.gz
[apple/xnu.git] / bsd / dev / dtrace / scripts / regs_x86_64.d
CommitLineData
39236c6e
A
1/*
2 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
39236c6e
A
6inline int R_GS = 0;
7#pragma D binding "1.0" R_GS
8inline int R_FS = 1;
9#pragma D binding "1.0" R_FS
10inline int R_ES = 2;
11#pragma D binding "1.0" R_ES
12inline int R_DS = 3;
13#pragma D binding "1.0" R_DS
14
15inline int R_EDI = 4;
16#pragma D binding "1.0" R_EDI
17inline int R_ESI = 5;
18#pragma D binding "1.0" R_ESI
19inline int R_EBP = 6;
20#pragma D binding "1.0" R_EBP
21inline int R_ESP = 7;
22#pragma D binding "1.0" R_ESP
23inline int R_EBX = 8;
24#pragma D binding "1.0" R_EBX
25inline int R_EDX = 9;
26#pragma D binding "1.0" R_EDX
27inline int R_ECX = 10;
28#pragma D binding "1.0" R_ECX
29inline int R_EAX = 11;
30#pragma D binding "1.0" R_EAX
31
32inline int R_TRAPNO = 12;
33#pragma D binding "1.0" R_TRAPNO
34inline int R_ERR = 13;
35#pragma D binding "1.0" R_ERR
36inline int R_EIP = 14;
37#pragma D binding "1.0" R_EIP
38inline int R_CS = 15;
39#pragma D binding "1.0" R_CS
40inline int R_EFL = 16;
41#pragma D binding "1.0" R_EFL
42inline int R_UESP = 17;
43#pragma D binding "1.0" R_UESP
44inline int R_SS = 18;
45#pragma D binding "1.0" R_SS
46
47inline int R_PC = R_EIP;
48#pragma D binding "1.0" R_PC
49inline int R_SP = R_UESP;
50#pragma D binding "1.0" R_SP
51inline int R_PS = R_EFL;
52#pragma D binding "1.0" R_PS
53inline int R_R0 = R_EAX;
54#pragma D binding "1.0" R_R0
55inline int R_R1 = R_EBX;
56#pragma D binding "1.0" R_R1
57
58inline int R_RSP = 18 + 1 + 20;
59#pragma D binding "1.0" R_RSP
60inline int R_RFL = 18 + 1 + 19;
61#pragma D binding "1.0" R_RFL
62inline int R_RIP = 18 + 1 + 17;
63#pragma D binding "1.0" R_RIP
64inline int R_RAX = 18 + 1 + 14;
65#pragma D binding "1.0" R_RAX
66inline int R_RCX = 18 + 1 + 13;
67#pragma D binding "1.0" R_RCX
68inline int R_RDX = 18 + 1 + 12;
69#pragma D binding "1.0" R_RDX
70inline int R_RBX = 18 + 1 + 11;
71#pragma D binding "1.0" R_RBX
72inline int R_RBP = 18 + 1 + 10;
73#pragma D binding "1.0" R_RBP
74inline int R_RSI = 18 + 1 + 9;
75#pragma D binding "1.0" R_RSI
76inline int R_RDI = 18 + 1 + 8;
77#pragma D binding "1.0" R_RDI
78inline int R_R8 = 18 + 1 + 7;
79#pragma D binding "1.0" R_R8
80inline int R_R9 = 18 + 1 + 6;
81#pragma D binding "1.0" R_R9
82inline int R_R10 = 18 + 1 + 5;
83#pragma D binding "1.0" R_R10
84inline int R_R11 = 18 + 1 + 4;
85#pragma D binding "1.0" R_R11
86inline int R_R12 = 18 + 1 + 3;
87#pragma D binding "1.0" R_R12
88inline int R_R13 = 18 + 1 + 2;
89#pragma D binding "1.0" R_R13
90inline int R_R14 = 18 + 1 + 1;
91#pragma D binding "1.0" R_R14
92inline int R_R15 = 18 + 1 + 0;
93#pragma D binding "1.0" R_R15
94