4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 * DWARF register numbers for AMD64
34 #pragma ident "%Z%%M% %I% %E% SMI"
37 * Dwarf register numbers for AMD64
38 * Only those with trailing comments are actually tracked
43 #define GPR_RBX 3 /* callee saves */
46 #define FP_RBP 6 /* callee saves (optional frame pointer) */
47 #define SP_RSP 7 /* stack pointer */
52 #define EIR_R12 12 /* callee saves */
53 #define EIR_R13 13 /* callee saves */
54 #define EIR_R14 14 /* callee saves */
55 #define EIR_R15 15 /* callee saves */
56 #define RET_ADD 16 /* virtual register - really caller's PC */
57 #define CF_ADDR 17 /* virtual register - tracks frame location */
96 * register arrays used in support routines contain 16 8-byte slots
97 * indexed from GPR_RAX to EIR_R15
99 * %rax 0 0 <undefined>
100 * %rdx 1 8 handler parameter
101 * %rcx 2 16 handler parameter
102 * %rbx 3 24 preserved
103 * %rsi 4 32 handler parameter
104 * %rdi 5 40 handler parameter
105 * %rbp 6 48 frame pointer
106 * %rsp 7 56 stack pointer
107 * %r8 8 64 <undefined>
108 * %r9 9 72 <undefined>
109 * %r10 10 80 <undefined>
110 * %r11 11 88 <undefined>
111 * %r12 12 96 preserved
112 * %r13 13 104 preserved
113 * %r14 14 112 preserved
114 * %r15 15 120 preserved
116 * register state arrays used to hold propagation information
117 * have two additional elements (indices RET_ADD and CF_ADDR)
120 #endif /* _REG_NUM_H */