xref: /freebsd/contrib/llvm-project/libunwind/include/libunwind.h (revision 0b57cec536236d46e3dba9bd041533462f33dbb7)
1*0b57cec5SDimitry Andric //===---------------------------- libunwind.h -----------------------------===//
2*0b57cec5SDimitry Andric //
3*0b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*0b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0b57cec5SDimitry Andric //
7*0b57cec5SDimitry Andric //
8*0b57cec5SDimitry Andric // Compatible with libunwind API documented at:
9*0b57cec5SDimitry Andric //   http://www.nongnu.org/libunwind/man/libunwind(3).html
10*0b57cec5SDimitry Andric //
11*0b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
12*0b57cec5SDimitry Andric 
13*0b57cec5SDimitry Andric #ifndef __LIBUNWIND__
14*0b57cec5SDimitry Andric #define __LIBUNWIND__
15*0b57cec5SDimitry Andric 
16*0b57cec5SDimitry Andric #include <__libunwind_config.h>
17*0b57cec5SDimitry Andric 
18*0b57cec5SDimitry Andric #include <stdint.h>
19*0b57cec5SDimitry Andric #include <stddef.h>
20*0b57cec5SDimitry Andric 
21*0b57cec5SDimitry Andric #ifdef __APPLE__
22*0b57cec5SDimitry Andric   #if __clang__
23*0b57cec5SDimitry Andric     #if __has_include(<Availability.h>)
24*0b57cec5SDimitry Andric       #include <Availability.h>
25*0b57cec5SDimitry Andric     #endif
26*0b57cec5SDimitry Andric   #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
27*0b57cec5SDimitry Andric     #include <Availability.h>
28*0b57cec5SDimitry Andric   #endif
29*0b57cec5SDimitry Andric 
30*0b57cec5SDimitry Andric   #ifdef __arm__
31*0b57cec5SDimitry Andric      #define LIBUNWIND_AVAIL __attribute__((unavailable))
32*0b57cec5SDimitry Andric   #elif defined(__OSX_AVAILABLE_STARTING)
33*0b57cec5SDimitry Andric     #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
34*0b57cec5SDimitry Andric   #else
35*0b57cec5SDimitry Andric     #include <AvailabilityMacros.h>
36*0b57cec5SDimitry Andric     #ifdef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
37*0b57cec5SDimitry Andric       #define LIBUNWIND_AVAIL AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER
38*0b57cec5SDimitry Andric     #else
39*0b57cec5SDimitry Andric       #define LIBUNWIND_AVAIL __attribute__((unavailable))
40*0b57cec5SDimitry Andric     #endif
41*0b57cec5SDimitry Andric   #endif
42*0b57cec5SDimitry Andric #else
43*0b57cec5SDimitry Andric   #define LIBUNWIND_AVAIL
44*0b57cec5SDimitry Andric #endif
45*0b57cec5SDimitry Andric 
46*0b57cec5SDimitry Andric /* error codes */
47*0b57cec5SDimitry Andric enum {
48*0b57cec5SDimitry Andric   UNW_ESUCCESS      = 0,     /* no error */
49*0b57cec5SDimitry Andric   UNW_EUNSPEC       = -6540, /* unspecified (general) error */
50*0b57cec5SDimitry Andric   UNW_ENOMEM        = -6541, /* out of memory */
51*0b57cec5SDimitry Andric   UNW_EBADREG       = -6542, /* bad register number */
52*0b57cec5SDimitry Andric   UNW_EREADONLYREG  = -6543, /* attempt to write read-only register */
53*0b57cec5SDimitry Andric   UNW_ESTOPUNWIND   = -6544, /* stop unwinding */
54*0b57cec5SDimitry Andric   UNW_EINVALIDIP    = -6545, /* invalid IP */
55*0b57cec5SDimitry Andric   UNW_EBADFRAME     = -6546, /* bad frame */
56*0b57cec5SDimitry Andric   UNW_EINVAL        = -6547, /* unsupported operation or bad value */
57*0b57cec5SDimitry Andric   UNW_EBADVERSION   = -6548, /* unwind info has unsupported version */
58*0b57cec5SDimitry Andric   UNW_ENOINFO       = -6549  /* no unwind info found */
59*0b57cec5SDimitry Andric #if defined(_LIBUNWIND_TARGET_AARCH64) && !defined(_LIBUNWIND_IS_NATIVE_ONLY)
60*0b57cec5SDimitry Andric   , UNW_ECROSSRASIGNING = -6550 /* cross unwind with return address signing */
61*0b57cec5SDimitry Andric #endif
62*0b57cec5SDimitry Andric };
63*0b57cec5SDimitry Andric 
64*0b57cec5SDimitry Andric struct unw_context_t {
65*0b57cec5SDimitry Andric   uint64_t data[_LIBUNWIND_CONTEXT_SIZE];
66*0b57cec5SDimitry Andric };
67*0b57cec5SDimitry Andric typedef struct unw_context_t unw_context_t;
68*0b57cec5SDimitry Andric 
69*0b57cec5SDimitry Andric struct unw_cursor_t {
70*0b57cec5SDimitry Andric   uint64_t data[_LIBUNWIND_CURSOR_SIZE];
71*0b57cec5SDimitry Andric };
72*0b57cec5SDimitry Andric typedef struct unw_cursor_t unw_cursor_t;
73*0b57cec5SDimitry Andric 
74*0b57cec5SDimitry Andric typedef struct unw_addr_space *unw_addr_space_t;
75*0b57cec5SDimitry Andric 
76*0b57cec5SDimitry Andric typedef int unw_regnum_t;
77*0b57cec5SDimitry Andric typedef uintptr_t unw_word_t;
78*0b57cec5SDimitry Andric #if defined(__arm__) && !defined(__ARM_DWARF_EH__)
79*0b57cec5SDimitry Andric typedef uint64_t unw_fpreg_t;
80*0b57cec5SDimitry Andric #else
81*0b57cec5SDimitry Andric typedef double unw_fpreg_t;
82*0b57cec5SDimitry Andric #endif
83*0b57cec5SDimitry Andric 
84*0b57cec5SDimitry Andric struct unw_proc_info_t {
85*0b57cec5SDimitry Andric   unw_word_t  start_ip;         /* start address of function */
86*0b57cec5SDimitry Andric   unw_word_t  end_ip;           /* address after end of function */
87*0b57cec5SDimitry Andric   unw_word_t  lsda;             /* address of language specific data area, */
88*0b57cec5SDimitry Andric                                 /*  or zero if not used */
89*0b57cec5SDimitry Andric   unw_word_t  handler;          /* personality routine, or zero if not used */
90*0b57cec5SDimitry Andric   unw_word_t  gp;               /* not used */
91*0b57cec5SDimitry Andric   unw_word_t  flags;            /* not used */
92*0b57cec5SDimitry Andric   uint32_t    format;           /* compact unwind encoding, or zero if none */
93*0b57cec5SDimitry Andric   uint32_t    unwind_info_size; /* size of DWARF unwind info, or zero if none */
94*0b57cec5SDimitry Andric   unw_word_t  unwind_info;      /* address of DWARF unwind info, or zero */
95*0b57cec5SDimitry Andric   unw_word_t  extra;            /* mach_header of mach-o image containing func */
96*0b57cec5SDimitry Andric };
97*0b57cec5SDimitry Andric typedef struct unw_proc_info_t unw_proc_info_t;
98*0b57cec5SDimitry Andric 
99*0b57cec5SDimitry Andric #ifdef __cplusplus
100*0b57cec5SDimitry Andric extern "C" {
101*0b57cec5SDimitry Andric #endif
102*0b57cec5SDimitry Andric 
103*0b57cec5SDimitry Andric extern int unw_getcontext(unw_context_t *) LIBUNWIND_AVAIL;
104*0b57cec5SDimitry Andric extern int unw_init_local(unw_cursor_t *, unw_context_t *) LIBUNWIND_AVAIL;
105*0b57cec5SDimitry Andric extern int unw_step(unw_cursor_t *) LIBUNWIND_AVAIL;
106*0b57cec5SDimitry Andric extern int unw_get_reg(unw_cursor_t *, unw_regnum_t, unw_word_t *) LIBUNWIND_AVAIL;
107*0b57cec5SDimitry Andric extern int unw_get_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t *) LIBUNWIND_AVAIL;
108*0b57cec5SDimitry Andric extern int unw_set_reg(unw_cursor_t *, unw_regnum_t, unw_word_t) LIBUNWIND_AVAIL;
109*0b57cec5SDimitry Andric extern int unw_set_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t)  LIBUNWIND_AVAIL;
110*0b57cec5SDimitry Andric extern int unw_resume(unw_cursor_t *) LIBUNWIND_AVAIL;
111*0b57cec5SDimitry Andric 
112*0b57cec5SDimitry Andric #ifdef __arm__
113*0b57cec5SDimitry Andric /* Save VFP registers in FSTMX format (instead of FSTMD). */
114*0b57cec5SDimitry Andric extern void unw_save_vfp_as_X(unw_cursor_t *) LIBUNWIND_AVAIL;
115*0b57cec5SDimitry Andric #endif
116*0b57cec5SDimitry Andric 
117*0b57cec5SDimitry Andric 
118*0b57cec5SDimitry Andric extern const char *unw_regname(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
119*0b57cec5SDimitry Andric extern int unw_get_proc_info(unw_cursor_t *, unw_proc_info_t *) LIBUNWIND_AVAIL;
120*0b57cec5SDimitry Andric extern int unw_is_fpreg(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
121*0b57cec5SDimitry Andric extern int unw_is_signal_frame(unw_cursor_t *) LIBUNWIND_AVAIL;
122*0b57cec5SDimitry Andric extern int unw_get_proc_name(unw_cursor_t *, char *, size_t, unw_word_t *) LIBUNWIND_AVAIL;
123*0b57cec5SDimitry Andric //extern int       unw_get_save_loc(unw_cursor_t*, int, unw_save_loc_t*);
124*0b57cec5SDimitry Andric 
125*0b57cec5SDimitry Andric extern unw_addr_space_t unw_local_addr_space;
126*0b57cec5SDimitry Andric 
127*0b57cec5SDimitry Andric #ifdef __cplusplus
128*0b57cec5SDimitry Andric }
129*0b57cec5SDimitry Andric #endif
130*0b57cec5SDimitry Andric 
131*0b57cec5SDimitry Andric // architecture independent register numbers
132*0b57cec5SDimitry Andric enum {
133*0b57cec5SDimitry Andric   UNW_REG_IP = -1, // instruction pointer
134*0b57cec5SDimitry Andric   UNW_REG_SP = -2, // stack pointer
135*0b57cec5SDimitry Andric };
136*0b57cec5SDimitry Andric 
137*0b57cec5SDimitry Andric // 32-bit x86 registers
138*0b57cec5SDimitry Andric enum {
139*0b57cec5SDimitry Andric   UNW_X86_EAX = 0,
140*0b57cec5SDimitry Andric   UNW_X86_ECX = 1,
141*0b57cec5SDimitry Andric   UNW_X86_EDX = 2,
142*0b57cec5SDimitry Andric   UNW_X86_EBX = 3,
143*0b57cec5SDimitry Andric   UNW_X86_EBP = 4,
144*0b57cec5SDimitry Andric   UNW_X86_ESP = 5,
145*0b57cec5SDimitry Andric   UNW_X86_ESI = 6,
146*0b57cec5SDimitry Andric   UNW_X86_EDI = 7
147*0b57cec5SDimitry Andric };
148*0b57cec5SDimitry Andric 
149*0b57cec5SDimitry Andric // 64-bit x86_64 registers
150*0b57cec5SDimitry Andric enum {
151*0b57cec5SDimitry Andric   UNW_X86_64_RAX = 0,
152*0b57cec5SDimitry Andric   UNW_X86_64_RDX = 1,
153*0b57cec5SDimitry Andric   UNW_X86_64_RCX = 2,
154*0b57cec5SDimitry Andric   UNW_X86_64_RBX = 3,
155*0b57cec5SDimitry Andric   UNW_X86_64_RSI = 4,
156*0b57cec5SDimitry Andric   UNW_X86_64_RDI = 5,
157*0b57cec5SDimitry Andric   UNW_X86_64_RBP = 6,
158*0b57cec5SDimitry Andric   UNW_X86_64_RSP = 7,
159*0b57cec5SDimitry Andric   UNW_X86_64_R8  = 8,
160*0b57cec5SDimitry Andric   UNW_X86_64_R9  = 9,
161*0b57cec5SDimitry Andric   UNW_X86_64_R10 = 10,
162*0b57cec5SDimitry Andric   UNW_X86_64_R11 = 11,
163*0b57cec5SDimitry Andric   UNW_X86_64_R12 = 12,
164*0b57cec5SDimitry Andric   UNW_X86_64_R13 = 13,
165*0b57cec5SDimitry Andric   UNW_X86_64_R14 = 14,
166*0b57cec5SDimitry Andric   UNW_X86_64_R15 = 15,
167*0b57cec5SDimitry Andric   UNW_X86_64_RIP = 16,
168*0b57cec5SDimitry Andric   UNW_X86_64_XMM0 = 17,
169*0b57cec5SDimitry Andric   UNW_X86_64_XMM1 = 18,
170*0b57cec5SDimitry Andric   UNW_X86_64_XMM2 = 19,
171*0b57cec5SDimitry Andric   UNW_X86_64_XMM3 = 20,
172*0b57cec5SDimitry Andric   UNW_X86_64_XMM4 = 21,
173*0b57cec5SDimitry Andric   UNW_X86_64_XMM5 = 22,
174*0b57cec5SDimitry Andric   UNW_X86_64_XMM6 = 23,
175*0b57cec5SDimitry Andric   UNW_X86_64_XMM7 = 24,
176*0b57cec5SDimitry Andric   UNW_X86_64_XMM8 = 25,
177*0b57cec5SDimitry Andric   UNW_X86_64_XMM9 = 26,
178*0b57cec5SDimitry Andric   UNW_X86_64_XMM10 = 27,
179*0b57cec5SDimitry Andric   UNW_X86_64_XMM11 = 28,
180*0b57cec5SDimitry Andric   UNW_X86_64_XMM12 = 29,
181*0b57cec5SDimitry Andric   UNW_X86_64_XMM13 = 30,
182*0b57cec5SDimitry Andric   UNW_X86_64_XMM14 = 31,
183*0b57cec5SDimitry Andric   UNW_X86_64_XMM15 = 32,
184*0b57cec5SDimitry Andric };
185*0b57cec5SDimitry Andric 
186*0b57cec5SDimitry Andric 
187*0b57cec5SDimitry Andric // 32-bit ppc register numbers
188*0b57cec5SDimitry Andric enum {
189*0b57cec5SDimitry Andric   UNW_PPC_R0  = 0,
190*0b57cec5SDimitry Andric   UNW_PPC_R1  = 1,
191*0b57cec5SDimitry Andric   UNW_PPC_R2  = 2,
192*0b57cec5SDimitry Andric   UNW_PPC_R3  = 3,
193*0b57cec5SDimitry Andric   UNW_PPC_R4  = 4,
194*0b57cec5SDimitry Andric   UNW_PPC_R5  = 5,
195*0b57cec5SDimitry Andric   UNW_PPC_R6  = 6,
196*0b57cec5SDimitry Andric   UNW_PPC_R7  = 7,
197*0b57cec5SDimitry Andric   UNW_PPC_R8  = 8,
198*0b57cec5SDimitry Andric   UNW_PPC_R9  = 9,
199*0b57cec5SDimitry Andric   UNW_PPC_R10 = 10,
200*0b57cec5SDimitry Andric   UNW_PPC_R11 = 11,
201*0b57cec5SDimitry Andric   UNW_PPC_R12 = 12,
202*0b57cec5SDimitry Andric   UNW_PPC_R13 = 13,
203*0b57cec5SDimitry Andric   UNW_PPC_R14 = 14,
204*0b57cec5SDimitry Andric   UNW_PPC_R15 = 15,
205*0b57cec5SDimitry Andric   UNW_PPC_R16 = 16,
206*0b57cec5SDimitry Andric   UNW_PPC_R17 = 17,
207*0b57cec5SDimitry Andric   UNW_PPC_R18 = 18,
208*0b57cec5SDimitry Andric   UNW_PPC_R19 = 19,
209*0b57cec5SDimitry Andric   UNW_PPC_R20 = 20,
210*0b57cec5SDimitry Andric   UNW_PPC_R21 = 21,
211*0b57cec5SDimitry Andric   UNW_PPC_R22 = 22,
212*0b57cec5SDimitry Andric   UNW_PPC_R23 = 23,
213*0b57cec5SDimitry Andric   UNW_PPC_R24 = 24,
214*0b57cec5SDimitry Andric   UNW_PPC_R25 = 25,
215*0b57cec5SDimitry Andric   UNW_PPC_R26 = 26,
216*0b57cec5SDimitry Andric   UNW_PPC_R27 = 27,
217*0b57cec5SDimitry Andric   UNW_PPC_R28 = 28,
218*0b57cec5SDimitry Andric   UNW_PPC_R29 = 29,
219*0b57cec5SDimitry Andric   UNW_PPC_R30 = 30,
220*0b57cec5SDimitry Andric   UNW_PPC_R31 = 31,
221*0b57cec5SDimitry Andric   UNW_PPC_F0  = 32,
222*0b57cec5SDimitry Andric   UNW_PPC_F1  = 33,
223*0b57cec5SDimitry Andric   UNW_PPC_F2  = 34,
224*0b57cec5SDimitry Andric   UNW_PPC_F3  = 35,
225*0b57cec5SDimitry Andric   UNW_PPC_F4  = 36,
226*0b57cec5SDimitry Andric   UNW_PPC_F5  = 37,
227*0b57cec5SDimitry Andric   UNW_PPC_F6  = 38,
228*0b57cec5SDimitry Andric   UNW_PPC_F7  = 39,
229*0b57cec5SDimitry Andric   UNW_PPC_F8  = 40,
230*0b57cec5SDimitry Andric   UNW_PPC_F9  = 41,
231*0b57cec5SDimitry Andric   UNW_PPC_F10 = 42,
232*0b57cec5SDimitry Andric   UNW_PPC_F11 = 43,
233*0b57cec5SDimitry Andric   UNW_PPC_F12 = 44,
234*0b57cec5SDimitry Andric   UNW_PPC_F13 = 45,
235*0b57cec5SDimitry Andric   UNW_PPC_F14 = 46,
236*0b57cec5SDimitry Andric   UNW_PPC_F15 = 47,
237*0b57cec5SDimitry Andric   UNW_PPC_F16 = 48,
238*0b57cec5SDimitry Andric   UNW_PPC_F17 = 49,
239*0b57cec5SDimitry Andric   UNW_PPC_F18 = 50,
240*0b57cec5SDimitry Andric   UNW_PPC_F19 = 51,
241*0b57cec5SDimitry Andric   UNW_PPC_F20 = 52,
242*0b57cec5SDimitry Andric   UNW_PPC_F21 = 53,
243*0b57cec5SDimitry Andric   UNW_PPC_F22 = 54,
244*0b57cec5SDimitry Andric   UNW_PPC_F23 = 55,
245*0b57cec5SDimitry Andric   UNW_PPC_F24 = 56,
246*0b57cec5SDimitry Andric   UNW_PPC_F25 = 57,
247*0b57cec5SDimitry Andric   UNW_PPC_F26 = 58,
248*0b57cec5SDimitry Andric   UNW_PPC_F27 = 59,
249*0b57cec5SDimitry Andric   UNW_PPC_F28 = 60,
250*0b57cec5SDimitry Andric   UNW_PPC_F29 = 61,
251*0b57cec5SDimitry Andric   UNW_PPC_F30 = 62,
252*0b57cec5SDimitry Andric   UNW_PPC_F31 = 63,
253*0b57cec5SDimitry Andric   UNW_PPC_MQ  = 64,
254*0b57cec5SDimitry Andric   UNW_PPC_LR  = 65,
255*0b57cec5SDimitry Andric   UNW_PPC_CTR = 66,
256*0b57cec5SDimitry Andric   UNW_PPC_AP  = 67,
257*0b57cec5SDimitry Andric   UNW_PPC_CR0 = 68,
258*0b57cec5SDimitry Andric   UNW_PPC_CR1 = 69,
259*0b57cec5SDimitry Andric   UNW_PPC_CR2 = 70,
260*0b57cec5SDimitry Andric   UNW_PPC_CR3 = 71,
261*0b57cec5SDimitry Andric   UNW_PPC_CR4 = 72,
262*0b57cec5SDimitry Andric   UNW_PPC_CR5 = 73,
263*0b57cec5SDimitry Andric   UNW_PPC_CR6 = 74,
264*0b57cec5SDimitry Andric   UNW_PPC_CR7 = 75,
265*0b57cec5SDimitry Andric   UNW_PPC_XER = 76,
266*0b57cec5SDimitry Andric   UNW_PPC_V0  = 77,
267*0b57cec5SDimitry Andric   UNW_PPC_V1  = 78,
268*0b57cec5SDimitry Andric   UNW_PPC_V2  = 79,
269*0b57cec5SDimitry Andric   UNW_PPC_V3  = 80,
270*0b57cec5SDimitry Andric   UNW_PPC_V4  = 81,
271*0b57cec5SDimitry Andric   UNW_PPC_V5  = 82,
272*0b57cec5SDimitry Andric   UNW_PPC_V6  = 83,
273*0b57cec5SDimitry Andric   UNW_PPC_V7  = 84,
274*0b57cec5SDimitry Andric   UNW_PPC_V8  = 85,
275*0b57cec5SDimitry Andric   UNW_PPC_V9  = 86,
276*0b57cec5SDimitry Andric   UNW_PPC_V10 = 87,
277*0b57cec5SDimitry Andric   UNW_PPC_V11 = 88,
278*0b57cec5SDimitry Andric   UNW_PPC_V12 = 89,
279*0b57cec5SDimitry Andric   UNW_PPC_V13 = 90,
280*0b57cec5SDimitry Andric   UNW_PPC_V14 = 91,
281*0b57cec5SDimitry Andric   UNW_PPC_V15 = 92,
282*0b57cec5SDimitry Andric   UNW_PPC_V16 = 93,
283*0b57cec5SDimitry Andric   UNW_PPC_V17 = 94,
284*0b57cec5SDimitry Andric   UNW_PPC_V18 = 95,
285*0b57cec5SDimitry Andric   UNW_PPC_V19 = 96,
286*0b57cec5SDimitry Andric   UNW_PPC_V20 = 97,
287*0b57cec5SDimitry Andric   UNW_PPC_V21 = 98,
288*0b57cec5SDimitry Andric   UNW_PPC_V22 = 99,
289*0b57cec5SDimitry Andric   UNW_PPC_V23 = 100,
290*0b57cec5SDimitry Andric   UNW_PPC_V24 = 101,
291*0b57cec5SDimitry Andric   UNW_PPC_V25 = 102,
292*0b57cec5SDimitry Andric   UNW_PPC_V26 = 103,
293*0b57cec5SDimitry Andric   UNW_PPC_V27 = 104,
294*0b57cec5SDimitry Andric   UNW_PPC_V28 = 105,
295*0b57cec5SDimitry Andric   UNW_PPC_V29 = 106,
296*0b57cec5SDimitry Andric   UNW_PPC_V30 = 107,
297*0b57cec5SDimitry Andric   UNW_PPC_V31 = 108,
298*0b57cec5SDimitry Andric   UNW_PPC_VRSAVE  = 109,
299*0b57cec5SDimitry Andric   UNW_PPC_VSCR    = 110,
300*0b57cec5SDimitry Andric   UNW_PPC_SPE_ACC = 111,
301*0b57cec5SDimitry Andric   UNW_PPC_SPEFSCR = 112
302*0b57cec5SDimitry Andric };
303*0b57cec5SDimitry Andric 
304*0b57cec5SDimitry Andric // 64-bit ppc register numbers
305*0b57cec5SDimitry Andric enum {
306*0b57cec5SDimitry Andric   UNW_PPC64_R0      = 0,
307*0b57cec5SDimitry Andric   UNW_PPC64_R1      = 1,
308*0b57cec5SDimitry Andric   UNW_PPC64_R2      = 2,
309*0b57cec5SDimitry Andric   UNW_PPC64_R3      = 3,
310*0b57cec5SDimitry Andric   UNW_PPC64_R4      = 4,
311*0b57cec5SDimitry Andric   UNW_PPC64_R5      = 5,
312*0b57cec5SDimitry Andric   UNW_PPC64_R6      = 6,
313*0b57cec5SDimitry Andric   UNW_PPC64_R7      = 7,
314*0b57cec5SDimitry Andric   UNW_PPC64_R8      = 8,
315*0b57cec5SDimitry Andric   UNW_PPC64_R9      = 9,
316*0b57cec5SDimitry Andric   UNW_PPC64_R10     = 10,
317*0b57cec5SDimitry Andric   UNW_PPC64_R11     = 11,
318*0b57cec5SDimitry Andric   UNW_PPC64_R12     = 12,
319*0b57cec5SDimitry Andric   UNW_PPC64_R13     = 13,
320*0b57cec5SDimitry Andric   UNW_PPC64_R14     = 14,
321*0b57cec5SDimitry Andric   UNW_PPC64_R15     = 15,
322*0b57cec5SDimitry Andric   UNW_PPC64_R16     = 16,
323*0b57cec5SDimitry Andric   UNW_PPC64_R17     = 17,
324*0b57cec5SDimitry Andric   UNW_PPC64_R18     = 18,
325*0b57cec5SDimitry Andric   UNW_PPC64_R19     = 19,
326*0b57cec5SDimitry Andric   UNW_PPC64_R20     = 20,
327*0b57cec5SDimitry Andric   UNW_PPC64_R21     = 21,
328*0b57cec5SDimitry Andric   UNW_PPC64_R22     = 22,
329*0b57cec5SDimitry Andric   UNW_PPC64_R23     = 23,
330*0b57cec5SDimitry Andric   UNW_PPC64_R24     = 24,
331*0b57cec5SDimitry Andric   UNW_PPC64_R25     = 25,
332*0b57cec5SDimitry Andric   UNW_PPC64_R26     = 26,
333*0b57cec5SDimitry Andric   UNW_PPC64_R27     = 27,
334*0b57cec5SDimitry Andric   UNW_PPC64_R28     = 28,
335*0b57cec5SDimitry Andric   UNW_PPC64_R29     = 29,
336*0b57cec5SDimitry Andric   UNW_PPC64_R30     = 30,
337*0b57cec5SDimitry Andric   UNW_PPC64_R31     = 31,
338*0b57cec5SDimitry Andric   UNW_PPC64_F0      = 32,
339*0b57cec5SDimitry Andric   UNW_PPC64_F1      = 33,
340*0b57cec5SDimitry Andric   UNW_PPC64_F2      = 34,
341*0b57cec5SDimitry Andric   UNW_PPC64_F3      = 35,
342*0b57cec5SDimitry Andric   UNW_PPC64_F4      = 36,
343*0b57cec5SDimitry Andric   UNW_PPC64_F5      = 37,
344*0b57cec5SDimitry Andric   UNW_PPC64_F6      = 38,
345*0b57cec5SDimitry Andric   UNW_PPC64_F7      = 39,
346*0b57cec5SDimitry Andric   UNW_PPC64_F8      = 40,
347*0b57cec5SDimitry Andric   UNW_PPC64_F9      = 41,
348*0b57cec5SDimitry Andric   UNW_PPC64_F10     = 42,
349*0b57cec5SDimitry Andric   UNW_PPC64_F11     = 43,
350*0b57cec5SDimitry Andric   UNW_PPC64_F12     = 44,
351*0b57cec5SDimitry Andric   UNW_PPC64_F13     = 45,
352*0b57cec5SDimitry Andric   UNW_PPC64_F14     = 46,
353*0b57cec5SDimitry Andric   UNW_PPC64_F15     = 47,
354*0b57cec5SDimitry Andric   UNW_PPC64_F16     = 48,
355*0b57cec5SDimitry Andric   UNW_PPC64_F17     = 49,
356*0b57cec5SDimitry Andric   UNW_PPC64_F18     = 50,
357*0b57cec5SDimitry Andric   UNW_PPC64_F19     = 51,
358*0b57cec5SDimitry Andric   UNW_PPC64_F20     = 52,
359*0b57cec5SDimitry Andric   UNW_PPC64_F21     = 53,
360*0b57cec5SDimitry Andric   UNW_PPC64_F22     = 54,
361*0b57cec5SDimitry Andric   UNW_PPC64_F23     = 55,
362*0b57cec5SDimitry Andric   UNW_PPC64_F24     = 56,
363*0b57cec5SDimitry Andric   UNW_PPC64_F25     = 57,
364*0b57cec5SDimitry Andric   UNW_PPC64_F26     = 58,
365*0b57cec5SDimitry Andric   UNW_PPC64_F27     = 59,
366*0b57cec5SDimitry Andric   UNW_PPC64_F28     = 60,
367*0b57cec5SDimitry Andric   UNW_PPC64_F29     = 61,
368*0b57cec5SDimitry Andric   UNW_PPC64_F30     = 62,
369*0b57cec5SDimitry Andric   UNW_PPC64_F31     = 63,
370*0b57cec5SDimitry Andric   // 64: reserved
371*0b57cec5SDimitry Andric   UNW_PPC64_LR      = 65,
372*0b57cec5SDimitry Andric   UNW_PPC64_CTR     = 66,
373*0b57cec5SDimitry Andric   // 67: reserved
374*0b57cec5SDimitry Andric   UNW_PPC64_CR0     = 68,
375*0b57cec5SDimitry Andric   UNW_PPC64_CR1     = 69,
376*0b57cec5SDimitry Andric   UNW_PPC64_CR2     = 70,
377*0b57cec5SDimitry Andric   UNW_PPC64_CR3     = 71,
378*0b57cec5SDimitry Andric   UNW_PPC64_CR4     = 72,
379*0b57cec5SDimitry Andric   UNW_PPC64_CR5     = 73,
380*0b57cec5SDimitry Andric   UNW_PPC64_CR6     = 74,
381*0b57cec5SDimitry Andric   UNW_PPC64_CR7     = 75,
382*0b57cec5SDimitry Andric   UNW_PPC64_XER     = 76,
383*0b57cec5SDimitry Andric   UNW_PPC64_V0      = 77,
384*0b57cec5SDimitry Andric   UNW_PPC64_V1      = 78,
385*0b57cec5SDimitry Andric   UNW_PPC64_V2      = 79,
386*0b57cec5SDimitry Andric   UNW_PPC64_V3      = 80,
387*0b57cec5SDimitry Andric   UNW_PPC64_V4      = 81,
388*0b57cec5SDimitry Andric   UNW_PPC64_V5      = 82,
389*0b57cec5SDimitry Andric   UNW_PPC64_V6      = 83,
390*0b57cec5SDimitry Andric   UNW_PPC64_V7      = 84,
391*0b57cec5SDimitry Andric   UNW_PPC64_V8      = 85,
392*0b57cec5SDimitry Andric   UNW_PPC64_V9      = 86,
393*0b57cec5SDimitry Andric   UNW_PPC64_V10     = 87,
394*0b57cec5SDimitry Andric   UNW_PPC64_V11     = 88,
395*0b57cec5SDimitry Andric   UNW_PPC64_V12     = 89,
396*0b57cec5SDimitry Andric   UNW_PPC64_V13     = 90,
397*0b57cec5SDimitry Andric   UNW_PPC64_V14     = 91,
398*0b57cec5SDimitry Andric   UNW_PPC64_V15     = 92,
399*0b57cec5SDimitry Andric   UNW_PPC64_V16     = 93,
400*0b57cec5SDimitry Andric   UNW_PPC64_V17     = 94,
401*0b57cec5SDimitry Andric   UNW_PPC64_V18     = 95,
402*0b57cec5SDimitry Andric   UNW_PPC64_V19     = 96,
403*0b57cec5SDimitry Andric   UNW_PPC64_V20     = 97,
404*0b57cec5SDimitry Andric   UNW_PPC64_V21     = 98,
405*0b57cec5SDimitry Andric   UNW_PPC64_V22     = 99,
406*0b57cec5SDimitry Andric   UNW_PPC64_V23     = 100,
407*0b57cec5SDimitry Andric   UNW_PPC64_V24     = 101,
408*0b57cec5SDimitry Andric   UNW_PPC64_V25     = 102,
409*0b57cec5SDimitry Andric   UNW_PPC64_V26     = 103,
410*0b57cec5SDimitry Andric   UNW_PPC64_V27     = 104,
411*0b57cec5SDimitry Andric   UNW_PPC64_V28     = 105,
412*0b57cec5SDimitry Andric   UNW_PPC64_V29     = 106,
413*0b57cec5SDimitry Andric   UNW_PPC64_V30     = 107,
414*0b57cec5SDimitry Andric   UNW_PPC64_V31     = 108,
415*0b57cec5SDimitry Andric   // 109, 111-113: OpenPOWER ELF V2 ABI: reserved
416*0b57cec5SDimitry Andric   // Borrowing VRSAVE number from PPC32.
417*0b57cec5SDimitry Andric   UNW_PPC64_VRSAVE  = 109,
418*0b57cec5SDimitry Andric   UNW_PPC64_VSCR    = 110,
419*0b57cec5SDimitry Andric   UNW_PPC64_TFHAR   = 114,
420*0b57cec5SDimitry Andric   UNW_PPC64_TFIAR   = 115,
421*0b57cec5SDimitry Andric   UNW_PPC64_TEXASR  = 116,
422*0b57cec5SDimitry Andric   UNW_PPC64_VS0     = UNW_PPC64_F0,
423*0b57cec5SDimitry Andric   UNW_PPC64_VS1     = UNW_PPC64_F1,
424*0b57cec5SDimitry Andric   UNW_PPC64_VS2     = UNW_PPC64_F2,
425*0b57cec5SDimitry Andric   UNW_PPC64_VS3     = UNW_PPC64_F3,
426*0b57cec5SDimitry Andric   UNW_PPC64_VS4     = UNW_PPC64_F4,
427*0b57cec5SDimitry Andric   UNW_PPC64_VS5     = UNW_PPC64_F5,
428*0b57cec5SDimitry Andric   UNW_PPC64_VS6     = UNW_PPC64_F6,
429*0b57cec5SDimitry Andric   UNW_PPC64_VS7     = UNW_PPC64_F7,
430*0b57cec5SDimitry Andric   UNW_PPC64_VS8     = UNW_PPC64_F8,
431*0b57cec5SDimitry Andric   UNW_PPC64_VS9     = UNW_PPC64_F9,
432*0b57cec5SDimitry Andric   UNW_PPC64_VS10    = UNW_PPC64_F10,
433*0b57cec5SDimitry Andric   UNW_PPC64_VS11    = UNW_PPC64_F11,
434*0b57cec5SDimitry Andric   UNW_PPC64_VS12    = UNW_PPC64_F12,
435*0b57cec5SDimitry Andric   UNW_PPC64_VS13    = UNW_PPC64_F13,
436*0b57cec5SDimitry Andric   UNW_PPC64_VS14    = UNW_PPC64_F14,
437*0b57cec5SDimitry Andric   UNW_PPC64_VS15    = UNW_PPC64_F15,
438*0b57cec5SDimitry Andric   UNW_PPC64_VS16    = UNW_PPC64_F16,
439*0b57cec5SDimitry Andric   UNW_PPC64_VS17    = UNW_PPC64_F17,
440*0b57cec5SDimitry Andric   UNW_PPC64_VS18    = UNW_PPC64_F18,
441*0b57cec5SDimitry Andric   UNW_PPC64_VS19    = UNW_PPC64_F19,
442*0b57cec5SDimitry Andric   UNW_PPC64_VS20    = UNW_PPC64_F20,
443*0b57cec5SDimitry Andric   UNW_PPC64_VS21    = UNW_PPC64_F21,
444*0b57cec5SDimitry Andric   UNW_PPC64_VS22    = UNW_PPC64_F22,
445*0b57cec5SDimitry Andric   UNW_PPC64_VS23    = UNW_PPC64_F23,
446*0b57cec5SDimitry Andric   UNW_PPC64_VS24    = UNW_PPC64_F24,
447*0b57cec5SDimitry Andric   UNW_PPC64_VS25    = UNW_PPC64_F25,
448*0b57cec5SDimitry Andric   UNW_PPC64_VS26    = UNW_PPC64_F26,
449*0b57cec5SDimitry Andric   UNW_PPC64_VS27    = UNW_PPC64_F27,
450*0b57cec5SDimitry Andric   UNW_PPC64_VS28    = UNW_PPC64_F28,
451*0b57cec5SDimitry Andric   UNW_PPC64_VS29    = UNW_PPC64_F29,
452*0b57cec5SDimitry Andric   UNW_PPC64_VS30    = UNW_PPC64_F30,
453*0b57cec5SDimitry Andric   UNW_PPC64_VS31    = UNW_PPC64_F31,
454*0b57cec5SDimitry Andric   UNW_PPC64_VS32    = UNW_PPC64_V0,
455*0b57cec5SDimitry Andric   UNW_PPC64_VS33    = UNW_PPC64_V1,
456*0b57cec5SDimitry Andric   UNW_PPC64_VS34    = UNW_PPC64_V2,
457*0b57cec5SDimitry Andric   UNW_PPC64_VS35    = UNW_PPC64_V3,
458*0b57cec5SDimitry Andric   UNW_PPC64_VS36    = UNW_PPC64_V4,
459*0b57cec5SDimitry Andric   UNW_PPC64_VS37    = UNW_PPC64_V5,
460*0b57cec5SDimitry Andric   UNW_PPC64_VS38    = UNW_PPC64_V6,
461*0b57cec5SDimitry Andric   UNW_PPC64_VS39    = UNW_PPC64_V7,
462*0b57cec5SDimitry Andric   UNW_PPC64_VS40    = UNW_PPC64_V8,
463*0b57cec5SDimitry Andric   UNW_PPC64_VS41    = UNW_PPC64_V9,
464*0b57cec5SDimitry Andric   UNW_PPC64_VS42    = UNW_PPC64_V10,
465*0b57cec5SDimitry Andric   UNW_PPC64_VS43    = UNW_PPC64_V11,
466*0b57cec5SDimitry Andric   UNW_PPC64_VS44    = UNW_PPC64_V12,
467*0b57cec5SDimitry Andric   UNW_PPC64_VS45    = UNW_PPC64_V13,
468*0b57cec5SDimitry Andric   UNW_PPC64_VS46    = UNW_PPC64_V14,
469*0b57cec5SDimitry Andric   UNW_PPC64_VS47    = UNW_PPC64_V15,
470*0b57cec5SDimitry Andric   UNW_PPC64_VS48    = UNW_PPC64_V16,
471*0b57cec5SDimitry Andric   UNW_PPC64_VS49    = UNW_PPC64_V17,
472*0b57cec5SDimitry Andric   UNW_PPC64_VS50    = UNW_PPC64_V18,
473*0b57cec5SDimitry Andric   UNW_PPC64_VS51    = UNW_PPC64_V19,
474*0b57cec5SDimitry Andric   UNW_PPC64_VS52    = UNW_PPC64_V20,
475*0b57cec5SDimitry Andric   UNW_PPC64_VS53    = UNW_PPC64_V21,
476*0b57cec5SDimitry Andric   UNW_PPC64_VS54    = UNW_PPC64_V22,
477*0b57cec5SDimitry Andric   UNW_PPC64_VS55    = UNW_PPC64_V23,
478*0b57cec5SDimitry Andric   UNW_PPC64_VS56    = UNW_PPC64_V24,
479*0b57cec5SDimitry Andric   UNW_PPC64_VS57    = UNW_PPC64_V25,
480*0b57cec5SDimitry Andric   UNW_PPC64_VS58    = UNW_PPC64_V26,
481*0b57cec5SDimitry Andric   UNW_PPC64_VS59    = UNW_PPC64_V27,
482*0b57cec5SDimitry Andric   UNW_PPC64_VS60    = UNW_PPC64_V28,
483*0b57cec5SDimitry Andric   UNW_PPC64_VS61    = UNW_PPC64_V29,
484*0b57cec5SDimitry Andric   UNW_PPC64_VS62    = UNW_PPC64_V30,
485*0b57cec5SDimitry Andric   UNW_PPC64_VS63    = UNW_PPC64_V31
486*0b57cec5SDimitry Andric };
487*0b57cec5SDimitry Andric 
488*0b57cec5SDimitry Andric // 64-bit ARM64 registers
489*0b57cec5SDimitry Andric enum {
490*0b57cec5SDimitry Andric   UNW_ARM64_X0  = 0,
491*0b57cec5SDimitry Andric   UNW_ARM64_X1  = 1,
492*0b57cec5SDimitry Andric   UNW_ARM64_X2  = 2,
493*0b57cec5SDimitry Andric   UNW_ARM64_X3  = 3,
494*0b57cec5SDimitry Andric   UNW_ARM64_X4  = 4,
495*0b57cec5SDimitry Andric   UNW_ARM64_X5  = 5,
496*0b57cec5SDimitry Andric   UNW_ARM64_X6  = 6,
497*0b57cec5SDimitry Andric   UNW_ARM64_X7  = 7,
498*0b57cec5SDimitry Andric   UNW_ARM64_X8  = 8,
499*0b57cec5SDimitry Andric   UNW_ARM64_X9  = 9,
500*0b57cec5SDimitry Andric   UNW_ARM64_X10 = 10,
501*0b57cec5SDimitry Andric   UNW_ARM64_X11 = 11,
502*0b57cec5SDimitry Andric   UNW_ARM64_X12 = 12,
503*0b57cec5SDimitry Andric   UNW_ARM64_X13 = 13,
504*0b57cec5SDimitry Andric   UNW_ARM64_X14 = 14,
505*0b57cec5SDimitry Andric   UNW_ARM64_X15 = 15,
506*0b57cec5SDimitry Andric   UNW_ARM64_X16 = 16,
507*0b57cec5SDimitry Andric   UNW_ARM64_X17 = 17,
508*0b57cec5SDimitry Andric   UNW_ARM64_X18 = 18,
509*0b57cec5SDimitry Andric   UNW_ARM64_X19 = 19,
510*0b57cec5SDimitry Andric   UNW_ARM64_X20 = 20,
511*0b57cec5SDimitry Andric   UNW_ARM64_X21 = 21,
512*0b57cec5SDimitry Andric   UNW_ARM64_X22 = 22,
513*0b57cec5SDimitry Andric   UNW_ARM64_X23 = 23,
514*0b57cec5SDimitry Andric   UNW_ARM64_X24 = 24,
515*0b57cec5SDimitry Andric   UNW_ARM64_X25 = 25,
516*0b57cec5SDimitry Andric   UNW_ARM64_X26 = 26,
517*0b57cec5SDimitry Andric   UNW_ARM64_X27 = 27,
518*0b57cec5SDimitry Andric   UNW_ARM64_X28 = 28,
519*0b57cec5SDimitry Andric   UNW_ARM64_X29 = 29,
520*0b57cec5SDimitry Andric   UNW_ARM64_FP  = 29,
521*0b57cec5SDimitry Andric   UNW_ARM64_X30 = 30,
522*0b57cec5SDimitry Andric   UNW_ARM64_LR  = 30,
523*0b57cec5SDimitry Andric   UNW_ARM64_X31 = 31,
524*0b57cec5SDimitry Andric   UNW_ARM64_SP  = 31,
525*0b57cec5SDimitry Andric   // reserved block
526*0b57cec5SDimitry Andric   UNW_ARM64_RA_SIGN_STATE = 34,
527*0b57cec5SDimitry Andric   // reserved block
528*0b57cec5SDimitry Andric   UNW_ARM64_D0  = 64,
529*0b57cec5SDimitry Andric   UNW_ARM64_D1  = 65,
530*0b57cec5SDimitry Andric   UNW_ARM64_D2  = 66,
531*0b57cec5SDimitry Andric   UNW_ARM64_D3  = 67,
532*0b57cec5SDimitry Andric   UNW_ARM64_D4  = 68,
533*0b57cec5SDimitry Andric   UNW_ARM64_D5  = 69,
534*0b57cec5SDimitry Andric   UNW_ARM64_D6  = 70,
535*0b57cec5SDimitry Andric   UNW_ARM64_D7  = 71,
536*0b57cec5SDimitry Andric   UNW_ARM64_D8  = 72,
537*0b57cec5SDimitry Andric   UNW_ARM64_D9  = 73,
538*0b57cec5SDimitry Andric   UNW_ARM64_D10 = 74,
539*0b57cec5SDimitry Andric   UNW_ARM64_D11 = 75,
540*0b57cec5SDimitry Andric   UNW_ARM64_D12 = 76,
541*0b57cec5SDimitry Andric   UNW_ARM64_D13 = 77,
542*0b57cec5SDimitry Andric   UNW_ARM64_D14 = 78,
543*0b57cec5SDimitry Andric   UNW_ARM64_D15 = 79,
544*0b57cec5SDimitry Andric   UNW_ARM64_D16 = 80,
545*0b57cec5SDimitry Andric   UNW_ARM64_D17 = 81,
546*0b57cec5SDimitry Andric   UNW_ARM64_D18 = 82,
547*0b57cec5SDimitry Andric   UNW_ARM64_D19 = 83,
548*0b57cec5SDimitry Andric   UNW_ARM64_D20 = 84,
549*0b57cec5SDimitry Andric   UNW_ARM64_D21 = 85,
550*0b57cec5SDimitry Andric   UNW_ARM64_D22 = 86,
551*0b57cec5SDimitry Andric   UNW_ARM64_D23 = 87,
552*0b57cec5SDimitry Andric   UNW_ARM64_D24 = 88,
553*0b57cec5SDimitry Andric   UNW_ARM64_D25 = 89,
554*0b57cec5SDimitry Andric   UNW_ARM64_D26 = 90,
555*0b57cec5SDimitry Andric   UNW_ARM64_D27 = 91,
556*0b57cec5SDimitry Andric   UNW_ARM64_D28 = 92,
557*0b57cec5SDimitry Andric   UNW_ARM64_D29 = 93,
558*0b57cec5SDimitry Andric   UNW_ARM64_D30 = 94,
559*0b57cec5SDimitry Andric   UNW_ARM64_D31 = 95,
560*0b57cec5SDimitry Andric };
561*0b57cec5SDimitry Andric 
562*0b57cec5SDimitry Andric // 32-bit ARM registers. Numbers match DWARF for ARM spec #3.1 Table 1.
563*0b57cec5SDimitry Andric // Naming scheme uses recommendations given in Note 4 for VFP-v2 and VFP-v3.
564*0b57cec5SDimitry Andric // In this scheme, even though the 64-bit floating point registers D0-D31
565*0b57cec5SDimitry Andric // overlap physically with the 32-bit floating pointer registers S0-S31,
566*0b57cec5SDimitry Andric // they are given a non-overlapping range of register numbers.
567*0b57cec5SDimitry Andric //
568*0b57cec5SDimitry Andric // Commented out ranges are not preserved during unwinding.
569*0b57cec5SDimitry Andric enum {
570*0b57cec5SDimitry Andric   UNW_ARM_R0  = 0,
571*0b57cec5SDimitry Andric   UNW_ARM_R1  = 1,
572*0b57cec5SDimitry Andric   UNW_ARM_R2  = 2,
573*0b57cec5SDimitry Andric   UNW_ARM_R3  = 3,
574*0b57cec5SDimitry Andric   UNW_ARM_R4  = 4,
575*0b57cec5SDimitry Andric   UNW_ARM_R5  = 5,
576*0b57cec5SDimitry Andric   UNW_ARM_R6  = 6,
577*0b57cec5SDimitry Andric   UNW_ARM_R7  = 7,
578*0b57cec5SDimitry Andric   UNW_ARM_R8  = 8,
579*0b57cec5SDimitry Andric   UNW_ARM_R9  = 9,
580*0b57cec5SDimitry Andric   UNW_ARM_R10 = 10,
581*0b57cec5SDimitry Andric   UNW_ARM_R11 = 11,
582*0b57cec5SDimitry Andric   UNW_ARM_R12 = 12,
583*0b57cec5SDimitry Andric   UNW_ARM_SP  = 13,  // Logical alias for UNW_REG_SP
584*0b57cec5SDimitry Andric   UNW_ARM_R13 = 13,
585*0b57cec5SDimitry Andric   UNW_ARM_LR  = 14,
586*0b57cec5SDimitry Andric   UNW_ARM_R14 = 14,
587*0b57cec5SDimitry Andric   UNW_ARM_IP  = 15,  // Logical alias for UNW_REG_IP
588*0b57cec5SDimitry Andric   UNW_ARM_R15 = 15,
589*0b57cec5SDimitry Andric   // 16-63 -- OBSOLETE. Used in VFP1 to represent both S0-S31 and D0-D31.
590*0b57cec5SDimitry Andric   UNW_ARM_S0  = 64,
591*0b57cec5SDimitry Andric   UNW_ARM_S1  = 65,
592*0b57cec5SDimitry Andric   UNW_ARM_S2  = 66,
593*0b57cec5SDimitry Andric   UNW_ARM_S3  = 67,
594*0b57cec5SDimitry Andric   UNW_ARM_S4  = 68,
595*0b57cec5SDimitry Andric   UNW_ARM_S5  = 69,
596*0b57cec5SDimitry Andric   UNW_ARM_S6  = 70,
597*0b57cec5SDimitry Andric   UNW_ARM_S7  = 71,
598*0b57cec5SDimitry Andric   UNW_ARM_S8  = 72,
599*0b57cec5SDimitry Andric   UNW_ARM_S9  = 73,
600*0b57cec5SDimitry Andric   UNW_ARM_S10 = 74,
601*0b57cec5SDimitry Andric   UNW_ARM_S11 = 75,
602*0b57cec5SDimitry Andric   UNW_ARM_S12 = 76,
603*0b57cec5SDimitry Andric   UNW_ARM_S13 = 77,
604*0b57cec5SDimitry Andric   UNW_ARM_S14 = 78,
605*0b57cec5SDimitry Andric   UNW_ARM_S15 = 79,
606*0b57cec5SDimitry Andric   UNW_ARM_S16 = 80,
607*0b57cec5SDimitry Andric   UNW_ARM_S17 = 81,
608*0b57cec5SDimitry Andric   UNW_ARM_S18 = 82,
609*0b57cec5SDimitry Andric   UNW_ARM_S19 = 83,
610*0b57cec5SDimitry Andric   UNW_ARM_S20 = 84,
611*0b57cec5SDimitry Andric   UNW_ARM_S21 = 85,
612*0b57cec5SDimitry Andric   UNW_ARM_S22 = 86,
613*0b57cec5SDimitry Andric   UNW_ARM_S23 = 87,
614*0b57cec5SDimitry Andric   UNW_ARM_S24 = 88,
615*0b57cec5SDimitry Andric   UNW_ARM_S25 = 89,
616*0b57cec5SDimitry Andric   UNW_ARM_S26 = 90,
617*0b57cec5SDimitry Andric   UNW_ARM_S27 = 91,
618*0b57cec5SDimitry Andric   UNW_ARM_S28 = 92,
619*0b57cec5SDimitry Andric   UNW_ARM_S29 = 93,
620*0b57cec5SDimitry Andric   UNW_ARM_S30 = 94,
621*0b57cec5SDimitry Andric   UNW_ARM_S31 = 95,
622*0b57cec5SDimitry Andric   //  96-103 -- OBSOLETE. F0-F7. Used by the FPA system. Superseded by VFP.
623*0b57cec5SDimitry Andric   // 104-111 -- wCGR0-wCGR7, ACC0-ACC7 (Intel wireless MMX)
624*0b57cec5SDimitry Andric   UNW_ARM_WR0 = 112,
625*0b57cec5SDimitry Andric   UNW_ARM_WR1 = 113,
626*0b57cec5SDimitry Andric   UNW_ARM_WR2 = 114,
627*0b57cec5SDimitry Andric   UNW_ARM_WR3 = 115,
628*0b57cec5SDimitry Andric   UNW_ARM_WR4 = 116,
629*0b57cec5SDimitry Andric   UNW_ARM_WR5 = 117,
630*0b57cec5SDimitry Andric   UNW_ARM_WR6 = 118,
631*0b57cec5SDimitry Andric   UNW_ARM_WR7 = 119,
632*0b57cec5SDimitry Andric   UNW_ARM_WR8 = 120,
633*0b57cec5SDimitry Andric   UNW_ARM_WR9 = 121,
634*0b57cec5SDimitry Andric   UNW_ARM_WR10 = 122,
635*0b57cec5SDimitry Andric   UNW_ARM_WR11 = 123,
636*0b57cec5SDimitry Andric   UNW_ARM_WR12 = 124,
637*0b57cec5SDimitry Andric   UNW_ARM_WR13 = 125,
638*0b57cec5SDimitry Andric   UNW_ARM_WR14 = 126,
639*0b57cec5SDimitry Andric   UNW_ARM_WR15 = 127,
640*0b57cec5SDimitry Andric   // 128-133 -- SPSR, SPSR_{FIQ|IRQ|ABT|UND|SVC}
641*0b57cec5SDimitry Andric   // 134-143 -- Reserved
642*0b57cec5SDimitry Andric   // 144-150 -- R8_USR-R14_USR
643*0b57cec5SDimitry Andric   // 151-157 -- R8_FIQ-R14_FIQ
644*0b57cec5SDimitry Andric   // 158-159 -- R13_IRQ-R14_IRQ
645*0b57cec5SDimitry Andric   // 160-161 -- R13_ABT-R14_ABT
646*0b57cec5SDimitry Andric   // 162-163 -- R13_UND-R14_UND
647*0b57cec5SDimitry Andric   // 164-165 -- R13_SVC-R14_SVC
648*0b57cec5SDimitry Andric   // 166-191 -- Reserved
649*0b57cec5SDimitry Andric   UNW_ARM_WC0 = 192,
650*0b57cec5SDimitry Andric   UNW_ARM_WC1 = 193,
651*0b57cec5SDimitry Andric   UNW_ARM_WC2 = 194,
652*0b57cec5SDimitry Andric   UNW_ARM_WC3 = 195,
653*0b57cec5SDimitry Andric   // 196-199 -- wC4-wC7 (Intel wireless MMX control)
654*0b57cec5SDimitry Andric   // 200-255 -- Reserved
655*0b57cec5SDimitry Andric   UNW_ARM_D0  = 256,
656*0b57cec5SDimitry Andric   UNW_ARM_D1  = 257,
657*0b57cec5SDimitry Andric   UNW_ARM_D2  = 258,
658*0b57cec5SDimitry Andric   UNW_ARM_D3  = 259,
659*0b57cec5SDimitry Andric   UNW_ARM_D4  = 260,
660*0b57cec5SDimitry Andric   UNW_ARM_D5  = 261,
661*0b57cec5SDimitry Andric   UNW_ARM_D6  = 262,
662*0b57cec5SDimitry Andric   UNW_ARM_D7  = 263,
663*0b57cec5SDimitry Andric   UNW_ARM_D8  = 264,
664*0b57cec5SDimitry Andric   UNW_ARM_D9  = 265,
665*0b57cec5SDimitry Andric   UNW_ARM_D10 = 266,
666*0b57cec5SDimitry Andric   UNW_ARM_D11 = 267,
667*0b57cec5SDimitry Andric   UNW_ARM_D12 = 268,
668*0b57cec5SDimitry Andric   UNW_ARM_D13 = 269,
669*0b57cec5SDimitry Andric   UNW_ARM_D14 = 270,
670*0b57cec5SDimitry Andric   UNW_ARM_D15 = 271,
671*0b57cec5SDimitry Andric   UNW_ARM_D16 = 272,
672*0b57cec5SDimitry Andric   UNW_ARM_D17 = 273,
673*0b57cec5SDimitry Andric   UNW_ARM_D18 = 274,
674*0b57cec5SDimitry Andric   UNW_ARM_D19 = 275,
675*0b57cec5SDimitry Andric   UNW_ARM_D20 = 276,
676*0b57cec5SDimitry Andric   UNW_ARM_D21 = 277,
677*0b57cec5SDimitry Andric   UNW_ARM_D22 = 278,
678*0b57cec5SDimitry Andric   UNW_ARM_D23 = 279,
679*0b57cec5SDimitry Andric   UNW_ARM_D24 = 280,
680*0b57cec5SDimitry Andric   UNW_ARM_D25 = 281,
681*0b57cec5SDimitry Andric   UNW_ARM_D26 = 282,
682*0b57cec5SDimitry Andric   UNW_ARM_D27 = 283,
683*0b57cec5SDimitry Andric   UNW_ARM_D28 = 284,
684*0b57cec5SDimitry Andric   UNW_ARM_D29 = 285,
685*0b57cec5SDimitry Andric   UNW_ARM_D30 = 286,
686*0b57cec5SDimitry Andric   UNW_ARM_D31 = 287,
687*0b57cec5SDimitry Andric   // 288-319 -- Reserved for VFP/Neon
688*0b57cec5SDimitry Andric   // 320-8191 -- Reserved
689*0b57cec5SDimitry Andric   // 8192-16383 -- Unspecified vendor co-processor register.
690*0b57cec5SDimitry Andric };
691*0b57cec5SDimitry Andric 
692*0b57cec5SDimitry Andric // OpenRISC1000 register numbers
693*0b57cec5SDimitry Andric enum {
694*0b57cec5SDimitry Andric   UNW_OR1K_R0  = 0,
695*0b57cec5SDimitry Andric   UNW_OR1K_R1  = 1,
696*0b57cec5SDimitry Andric   UNW_OR1K_R2  = 2,
697*0b57cec5SDimitry Andric   UNW_OR1K_R3  = 3,
698*0b57cec5SDimitry Andric   UNW_OR1K_R4  = 4,
699*0b57cec5SDimitry Andric   UNW_OR1K_R5  = 5,
700*0b57cec5SDimitry Andric   UNW_OR1K_R6  = 6,
701*0b57cec5SDimitry Andric   UNW_OR1K_R7  = 7,
702*0b57cec5SDimitry Andric   UNW_OR1K_R8  = 8,
703*0b57cec5SDimitry Andric   UNW_OR1K_R9  = 9,
704*0b57cec5SDimitry Andric   UNW_OR1K_R10 = 10,
705*0b57cec5SDimitry Andric   UNW_OR1K_R11 = 11,
706*0b57cec5SDimitry Andric   UNW_OR1K_R12 = 12,
707*0b57cec5SDimitry Andric   UNW_OR1K_R13 = 13,
708*0b57cec5SDimitry Andric   UNW_OR1K_R14 = 14,
709*0b57cec5SDimitry Andric   UNW_OR1K_R15 = 15,
710*0b57cec5SDimitry Andric   UNW_OR1K_R16 = 16,
711*0b57cec5SDimitry Andric   UNW_OR1K_R17 = 17,
712*0b57cec5SDimitry Andric   UNW_OR1K_R18 = 18,
713*0b57cec5SDimitry Andric   UNW_OR1K_R19 = 19,
714*0b57cec5SDimitry Andric   UNW_OR1K_R20 = 20,
715*0b57cec5SDimitry Andric   UNW_OR1K_R21 = 21,
716*0b57cec5SDimitry Andric   UNW_OR1K_R22 = 22,
717*0b57cec5SDimitry Andric   UNW_OR1K_R23 = 23,
718*0b57cec5SDimitry Andric   UNW_OR1K_R24 = 24,
719*0b57cec5SDimitry Andric   UNW_OR1K_R25 = 25,
720*0b57cec5SDimitry Andric   UNW_OR1K_R26 = 26,
721*0b57cec5SDimitry Andric   UNW_OR1K_R27 = 27,
722*0b57cec5SDimitry Andric   UNW_OR1K_R28 = 28,
723*0b57cec5SDimitry Andric   UNW_OR1K_R29 = 29,
724*0b57cec5SDimitry Andric   UNW_OR1K_R30 = 30,
725*0b57cec5SDimitry Andric   UNW_OR1K_R31 = 31,
726*0b57cec5SDimitry Andric   UNW_OR1K_EPCR = 32,
727*0b57cec5SDimitry Andric };
728*0b57cec5SDimitry Andric 
729*0b57cec5SDimitry Andric // 64-bit RISC-V registers
730*0b57cec5SDimitry Andric enum {
731*0b57cec5SDimitry Andric   UNW_RISCV_X0  = 0,
732*0b57cec5SDimitry Andric   UNW_RISCV_X1  = 1,
733*0b57cec5SDimitry Andric   UNW_RISCV_RA  = 1,
734*0b57cec5SDimitry Andric   UNW_RISCV_X2  = 2,
735*0b57cec5SDimitry Andric   UNW_RISCV_SP  = 2,
736*0b57cec5SDimitry Andric   UNW_RISCV_X3  = 3,
737*0b57cec5SDimitry Andric   UNW_RISCV_X4  = 4,
738*0b57cec5SDimitry Andric   UNW_RISCV_X5  = 5,
739*0b57cec5SDimitry Andric   UNW_RISCV_X6  = 6,
740*0b57cec5SDimitry Andric   UNW_RISCV_X7  = 7,
741*0b57cec5SDimitry Andric   UNW_RISCV_X8  = 8,
742*0b57cec5SDimitry Andric   UNW_RISCV_X9  = 9,
743*0b57cec5SDimitry Andric   UNW_RISCV_X10 = 10,
744*0b57cec5SDimitry Andric   UNW_RISCV_X11 = 11,
745*0b57cec5SDimitry Andric   UNW_RISCV_X12 = 12,
746*0b57cec5SDimitry Andric   UNW_RISCV_X13 = 13,
747*0b57cec5SDimitry Andric   UNW_RISCV_X14 = 14,
748*0b57cec5SDimitry Andric   UNW_RISCV_X15 = 15,
749*0b57cec5SDimitry Andric   UNW_RISCV_X16 = 16,
750*0b57cec5SDimitry Andric   UNW_RISCV_X17 = 17,
751*0b57cec5SDimitry Andric   UNW_RISCV_X18 = 18,
752*0b57cec5SDimitry Andric   UNW_RISCV_X19 = 19,
753*0b57cec5SDimitry Andric   UNW_RISCV_X20 = 20,
754*0b57cec5SDimitry Andric   UNW_RISCV_X21 = 21,
755*0b57cec5SDimitry Andric   UNW_RISCV_X22 = 22,
756*0b57cec5SDimitry Andric   UNW_RISCV_X23 = 23,
757*0b57cec5SDimitry Andric   UNW_RISCV_X24 = 24,
758*0b57cec5SDimitry Andric   UNW_RISCV_X25 = 25,
759*0b57cec5SDimitry Andric   UNW_RISCV_X26 = 26,
760*0b57cec5SDimitry Andric   UNW_RISCV_X27 = 27,
761*0b57cec5SDimitry Andric   UNW_RISCV_X28 = 28,
762*0b57cec5SDimitry Andric   UNW_RISCV_X29 = 29,
763*0b57cec5SDimitry Andric   UNW_RISCV_X30 = 30,
764*0b57cec5SDimitry Andric   UNW_RISCV_X31 = 31,
765*0b57cec5SDimitry Andric   // reserved block
766*0b57cec5SDimitry Andric   UNW_RISCV_D0  = 64,
767*0b57cec5SDimitry Andric   UNW_RISCV_D1  = 65,
768*0b57cec5SDimitry Andric   UNW_RISCV_D2  = 66,
769*0b57cec5SDimitry Andric   UNW_RISCV_D3  = 67,
770*0b57cec5SDimitry Andric   UNW_RISCV_D4  = 68,
771*0b57cec5SDimitry Andric   UNW_RISCV_D5  = 69,
772*0b57cec5SDimitry Andric   UNW_RISCV_D6  = 70,
773*0b57cec5SDimitry Andric   UNW_RISCV_D7  = 71,
774*0b57cec5SDimitry Andric   UNW_RISCV_D8  = 72,
775*0b57cec5SDimitry Andric   UNW_RISCV_D9  = 73,
776*0b57cec5SDimitry Andric   UNW_RISCV_D10 = 74,
777*0b57cec5SDimitry Andric   UNW_RISCV_D11 = 75,
778*0b57cec5SDimitry Andric   UNW_RISCV_D12 = 76,
779*0b57cec5SDimitry Andric   UNW_RISCV_D13 = 77,
780*0b57cec5SDimitry Andric   UNW_RISCV_D14 = 78,
781*0b57cec5SDimitry Andric   UNW_RISCV_D15 = 79,
782*0b57cec5SDimitry Andric   UNW_RISCV_D16 = 80,
783*0b57cec5SDimitry Andric   UNW_RISCV_D17 = 81,
784*0b57cec5SDimitry Andric   UNW_RISCV_D18 = 82,
785*0b57cec5SDimitry Andric   UNW_RISCV_D19 = 83,
786*0b57cec5SDimitry Andric   UNW_RISCV_D20 = 84,
787*0b57cec5SDimitry Andric   UNW_RISCV_D21 = 85,
788*0b57cec5SDimitry Andric   UNW_RISCV_D22 = 86,
789*0b57cec5SDimitry Andric   UNW_RISCV_D23 = 87,
790*0b57cec5SDimitry Andric   UNW_RISCV_D24 = 88,
791*0b57cec5SDimitry Andric   UNW_RISCV_D25 = 89,
792*0b57cec5SDimitry Andric   UNW_RISCV_D26 = 90,
793*0b57cec5SDimitry Andric   UNW_RISCV_D27 = 91,
794*0b57cec5SDimitry Andric   UNW_RISCV_D28 = 92,
795*0b57cec5SDimitry Andric   UNW_RISCV_D29 = 93,
796*0b57cec5SDimitry Andric   UNW_RISCV_D30 = 94,
797*0b57cec5SDimitry Andric   UNW_RISCV_D31 = 95,
798*0b57cec5SDimitry Andric };
799*0b57cec5SDimitry Andric 
800*0b57cec5SDimitry Andric // MIPS registers
801*0b57cec5SDimitry Andric enum {
802*0b57cec5SDimitry Andric   UNW_MIPS_R0  = 0,
803*0b57cec5SDimitry Andric   UNW_MIPS_R1  = 1,
804*0b57cec5SDimitry Andric   UNW_MIPS_R2  = 2,
805*0b57cec5SDimitry Andric   UNW_MIPS_R3  = 3,
806*0b57cec5SDimitry Andric   UNW_MIPS_R4  = 4,
807*0b57cec5SDimitry Andric   UNW_MIPS_R5  = 5,
808*0b57cec5SDimitry Andric   UNW_MIPS_R6  = 6,
809*0b57cec5SDimitry Andric   UNW_MIPS_R7  = 7,
810*0b57cec5SDimitry Andric   UNW_MIPS_R8  = 8,
811*0b57cec5SDimitry Andric   UNW_MIPS_R9  = 9,
812*0b57cec5SDimitry Andric   UNW_MIPS_R10 = 10,
813*0b57cec5SDimitry Andric   UNW_MIPS_R11 = 11,
814*0b57cec5SDimitry Andric   UNW_MIPS_R12 = 12,
815*0b57cec5SDimitry Andric   UNW_MIPS_R13 = 13,
816*0b57cec5SDimitry Andric   UNW_MIPS_R14 = 14,
817*0b57cec5SDimitry Andric   UNW_MIPS_R15 = 15,
818*0b57cec5SDimitry Andric   UNW_MIPS_R16 = 16,
819*0b57cec5SDimitry Andric   UNW_MIPS_R17 = 17,
820*0b57cec5SDimitry Andric   UNW_MIPS_R18 = 18,
821*0b57cec5SDimitry Andric   UNW_MIPS_R19 = 19,
822*0b57cec5SDimitry Andric   UNW_MIPS_R20 = 20,
823*0b57cec5SDimitry Andric   UNW_MIPS_R21 = 21,
824*0b57cec5SDimitry Andric   UNW_MIPS_R22 = 22,
825*0b57cec5SDimitry Andric   UNW_MIPS_R23 = 23,
826*0b57cec5SDimitry Andric   UNW_MIPS_R24 = 24,
827*0b57cec5SDimitry Andric   UNW_MIPS_R25 = 25,
828*0b57cec5SDimitry Andric   UNW_MIPS_R26 = 26,
829*0b57cec5SDimitry Andric   UNW_MIPS_R27 = 27,
830*0b57cec5SDimitry Andric   UNW_MIPS_R28 = 28,
831*0b57cec5SDimitry Andric   UNW_MIPS_R29 = 29,
832*0b57cec5SDimitry Andric   UNW_MIPS_R30 = 30,
833*0b57cec5SDimitry Andric   UNW_MIPS_R31 = 31,
834*0b57cec5SDimitry Andric   UNW_MIPS_F0  = 32,
835*0b57cec5SDimitry Andric   UNW_MIPS_F1  = 33,
836*0b57cec5SDimitry Andric   UNW_MIPS_F2  = 34,
837*0b57cec5SDimitry Andric   UNW_MIPS_F3  = 35,
838*0b57cec5SDimitry Andric   UNW_MIPS_F4  = 36,
839*0b57cec5SDimitry Andric   UNW_MIPS_F5  = 37,
840*0b57cec5SDimitry Andric   UNW_MIPS_F6  = 38,
841*0b57cec5SDimitry Andric   UNW_MIPS_F7  = 39,
842*0b57cec5SDimitry Andric   UNW_MIPS_F8  = 40,
843*0b57cec5SDimitry Andric   UNW_MIPS_F9  = 41,
844*0b57cec5SDimitry Andric   UNW_MIPS_F10 = 42,
845*0b57cec5SDimitry Andric   UNW_MIPS_F11 = 43,
846*0b57cec5SDimitry Andric   UNW_MIPS_F12 = 44,
847*0b57cec5SDimitry Andric   UNW_MIPS_F13 = 45,
848*0b57cec5SDimitry Andric   UNW_MIPS_F14 = 46,
849*0b57cec5SDimitry Andric   UNW_MIPS_F15 = 47,
850*0b57cec5SDimitry Andric   UNW_MIPS_F16 = 48,
851*0b57cec5SDimitry Andric   UNW_MIPS_F17 = 49,
852*0b57cec5SDimitry Andric   UNW_MIPS_F18 = 50,
853*0b57cec5SDimitry Andric   UNW_MIPS_F19 = 51,
854*0b57cec5SDimitry Andric   UNW_MIPS_F20 = 52,
855*0b57cec5SDimitry Andric   UNW_MIPS_F21 = 53,
856*0b57cec5SDimitry Andric   UNW_MIPS_F22 = 54,
857*0b57cec5SDimitry Andric   UNW_MIPS_F23 = 55,
858*0b57cec5SDimitry Andric   UNW_MIPS_F24 = 56,
859*0b57cec5SDimitry Andric   UNW_MIPS_F25 = 57,
860*0b57cec5SDimitry Andric   UNW_MIPS_F26 = 58,
861*0b57cec5SDimitry Andric   UNW_MIPS_F27 = 59,
862*0b57cec5SDimitry Andric   UNW_MIPS_F28 = 60,
863*0b57cec5SDimitry Andric   UNW_MIPS_F29 = 61,
864*0b57cec5SDimitry Andric   UNW_MIPS_F30 = 62,
865*0b57cec5SDimitry Andric   UNW_MIPS_F31 = 63,
866*0b57cec5SDimitry Andric   UNW_MIPS_HI = 64,
867*0b57cec5SDimitry Andric   UNW_MIPS_LO = 65,
868*0b57cec5SDimitry Andric };
869*0b57cec5SDimitry Andric 
870*0b57cec5SDimitry Andric // SPARC registers
871*0b57cec5SDimitry Andric enum {
872*0b57cec5SDimitry Andric   UNW_SPARC_G0 = 0,
873*0b57cec5SDimitry Andric   UNW_SPARC_G1 = 1,
874*0b57cec5SDimitry Andric   UNW_SPARC_G2 = 2,
875*0b57cec5SDimitry Andric   UNW_SPARC_G3 = 3,
876*0b57cec5SDimitry Andric   UNW_SPARC_G4 = 4,
877*0b57cec5SDimitry Andric   UNW_SPARC_G5 = 5,
878*0b57cec5SDimitry Andric   UNW_SPARC_G6 = 6,
879*0b57cec5SDimitry Andric   UNW_SPARC_G7 = 7,
880*0b57cec5SDimitry Andric   UNW_SPARC_O0 = 8,
881*0b57cec5SDimitry Andric   UNW_SPARC_O1 = 9,
882*0b57cec5SDimitry Andric   UNW_SPARC_O2 = 10,
883*0b57cec5SDimitry Andric   UNW_SPARC_O3 = 11,
884*0b57cec5SDimitry Andric   UNW_SPARC_O4 = 12,
885*0b57cec5SDimitry Andric   UNW_SPARC_O5 = 13,
886*0b57cec5SDimitry Andric   UNW_SPARC_O6 = 14,
887*0b57cec5SDimitry Andric   UNW_SPARC_O7 = 15,
888*0b57cec5SDimitry Andric   UNW_SPARC_L0 = 16,
889*0b57cec5SDimitry Andric   UNW_SPARC_L1 = 17,
890*0b57cec5SDimitry Andric   UNW_SPARC_L2 = 18,
891*0b57cec5SDimitry Andric   UNW_SPARC_L3 = 19,
892*0b57cec5SDimitry Andric   UNW_SPARC_L4 = 20,
893*0b57cec5SDimitry Andric   UNW_SPARC_L5 = 21,
894*0b57cec5SDimitry Andric   UNW_SPARC_L6 = 22,
895*0b57cec5SDimitry Andric   UNW_SPARC_L7 = 23,
896*0b57cec5SDimitry Andric   UNW_SPARC_I0 = 24,
897*0b57cec5SDimitry Andric   UNW_SPARC_I1 = 25,
898*0b57cec5SDimitry Andric   UNW_SPARC_I2 = 26,
899*0b57cec5SDimitry Andric   UNW_SPARC_I3 = 27,
900*0b57cec5SDimitry Andric   UNW_SPARC_I4 = 28,
901*0b57cec5SDimitry Andric   UNW_SPARC_I5 = 29,
902*0b57cec5SDimitry Andric   UNW_SPARC_I6 = 30,
903*0b57cec5SDimitry Andric   UNW_SPARC_I7 = 31,
904*0b57cec5SDimitry Andric };
905*0b57cec5SDimitry Andric 
906*0b57cec5SDimitry Andric #endif
907