1b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//===---------------------------- libunwind.h -----------------------------===//
2b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//
3b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//                     The LLVM Compiler Infrastructure
4b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//
5b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik// This file is dual licensed under the MIT and the University of Illinois Open
6b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik// Source Licenses. See LICENSE.TXT for details.
7b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//
8b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//
9b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik// Compatible with libuwind API documented at:
10b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//   http://www.nongnu.org/libunwind/man/libunwind(3).html
11b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//
12b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//===----------------------------------------------------------------------===//
13b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
14b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#ifndef __LIBUNWIND__
15b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#define __LIBUNWIND__
16b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
17b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#include <stdint.h>
18b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#include <stddef.h>
19b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
20e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert// FIXME: This is also in unwind.h and cxxabi.h, can we consolidate?
21e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#if !defined(__USING_SJLJ_EXCEPTIONS__) && defined(__arm__) && \
22e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert    !defined(__ARM_DWARF_EH__) && !defined(__APPLE__)
23e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#define LIBCXXABI_ARM_EHABI 1
24e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#else
25e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#define LIBCXXABI_ARM_EHABI 0
26e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#endif
27e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert
28b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#if __APPLE__
29b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  #include <Availability.h>
30b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik    #if __arm__
31b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik       #define LIBUNWIND_AVAIL __attribute__((unavailable))
32b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik    #else
33b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik      #define LIBUNWIND_AVAIL __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_5_0)
34b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik    #endif
35b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#else
36b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  #define LIBUNWIND_AVAIL
37b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#endif
38b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
39b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik/* error codes */
40b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikenum {
41b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_ESUCCESS      = 0,     /* no error */
42b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_EUNSPEC       = -6540, /* unspecified (general) error */
43b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_ENOMEM        = -6541, /* out of memory */
44b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_EBADREG       = -6542, /* bad register number */
45b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_EREADONLYREG  = -6543, /* attempt to write read-only register */
46b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_ESTOPUNWIND   = -6544, /* stop unwinding */
47b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_EINVALIDIP    = -6545, /* invalid IP */
48b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_EBADFRAME     = -6546, /* bad frame */
49b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_EINVAL        = -6547, /* unsupported operation or bad value */
50b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_EBADVERSION   = -6548, /* unwind info has unsupported version */
51b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_ENOINFO       = -6549  /* no unwind info found */
52b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik};
53b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
54b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikstruct unw_context_t {
55b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  uint64_t data[128];
56b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik};
57b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledziktypedef struct unw_context_t unw_context_t;
58b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
59b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikstruct unw_cursor_t {
60b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  uint64_t data[140];
61b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik};
62b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledziktypedef struct unw_cursor_t unw_cursor_t;
63b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
64b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledziktypedef struct unw_addr_space *unw_addr_space_t;
65b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
66b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledziktypedef int unw_regnum_t;
67e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#if LIBCXXABI_ARM_EHABI
68e45805f0d3f8dafef1297cc7dc49e610713f023bDan Alberttypedef uint32_t unw_word_t;
69e45805f0d3f8dafef1297cc7dc49e610713f023bDan Alberttypedef uint64_t unw_fpreg_t;
70e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#else
71b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledziktypedef uint64_t unw_word_t;
72b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledziktypedef double unw_fpreg_t;
73e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#endif
74b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
75b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikstruct unw_proc_info_t {
76b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  start_ip;         /* start address of function */
77b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  end_ip;           /* address after end of function */
78b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  lsda;             /* address of language specific data area, */
79b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik                                /*  or zero if not used */
80b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  handler;          /* personality routine, or zero if not used */
81b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  gp;               /* not used */
82b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  flags;            /* not used */
83b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  uint32_t    format;           /* compact unwind encoding, or zero if none */
84b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  uint32_t    unwind_info_size; /* size of dwarf unwind info, or zero if none */
85b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  unwind_info;      /* address of dwarf unwind info, or zero */
86b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  unw_word_t  extra;            /* mach_header of mach-o image containing func */
87b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik};
88b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledziktypedef struct unw_proc_info_t unw_proc_info_t;
89b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
90b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#ifdef __cplusplus
91b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern "C" {
92b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#endif
93b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
94b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_getcontext(unw_context_t *) LIBUNWIND_AVAIL;
95b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_init_local(unw_cursor_t *, unw_context_t *) LIBUNWIND_AVAIL;
96b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_step(unw_cursor_t *) LIBUNWIND_AVAIL;
97b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_get_reg(unw_cursor_t *, unw_regnum_t, unw_word_t *) LIBUNWIND_AVAIL;
98b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_get_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t *) LIBUNWIND_AVAIL;
99b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_set_reg(unw_cursor_t *, unw_regnum_t, unw_word_t) LIBUNWIND_AVAIL;
100b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_set_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t)  LIBUNWIND_AVAIL;
101b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_resume(unw_cursor_t *) LIBUNWIND_AVAIL;
102b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
103e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#if __arm__
104e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert/* Save VFP registers in FSTMX format (instead of FSTMD). */
105e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albertextern void unw_save_vfp_as_X(unw_cursor_t *) LIBUNWIND_AVAIL;
106e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert#endif
107e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert
108e45805f0d3f8dafef1297cc7dc49e610713f023bDan Albert
109b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern const char *unw_regname(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
110b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_get_proc_info(unw_cursor_t *, unw_proc_info_t *) LIBUNWIND_AVAIL;
111b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_is_fpreg(unw_cursor_t *, unw_regnum_t) LIBUNWIND_AVAIL;
112b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_is_signal_frame(unw_cursor_t *) LIBUNWIND_AVAIL;
113b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_get_proc_name(unw_cursor_t *, char *, size_t, unw_word_t *) LIBUNWIND_AVAIL;
114b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik//extern int       unw_get_save_loc(unw_cursor_t*, int, unw_save_loc_t*);
115b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
116b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#if UNW_REMOTE
117b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik/*
118b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * Mac OS X "remote" API for unwinding other processes on same machine
119b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik *
120b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik */
121b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern unw_addr_space_t unw_local_addr_space;
122b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern unw_addr_space_t unw_create_addr_space_for_task(task_t);
123b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern void unw_destroy_addr_space(unw_addr_space_t);
124b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikextern int unw_init_remote_thread(unw_cursor_t *, unw_addr_space_t, thread_t *);
125b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#endif
126b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
127b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik/*
128b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * traditional libuwind "remote" API
129b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik *   NOT IMPLEMENTED on Mac OS X
130b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik *
131b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * extern int               unw_init_remote(unw_cursor_t*, unw_addr_space_t,
132b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik *                                          thread_t*);
133b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * extern unw_accessors_t   unw_get_accessors(unw_addr_space_t);
134b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * extern unw_addr_space_t  unw_create_addr_space(unw_accessors_t, int);
135b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * extern void              unw_flush_cache(unw_addr_space_t, unw_word_t,
136b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik *                                          unw_word_t);
137b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * extern int               unw_set_caching_policy(unw_addr_space_t,
138b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik *                                                 unw_caching_policy_t);
139b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * extern void              _U_dyn_register(unw_dyn_info_t*);
140b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik * extern void              _U_dyn_cancel(unw_dyn_info_t*);
141b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik */
142b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
143b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#ifdef __cplusplus
144b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik}
145b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik#endif
146b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
147b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik// architecture independent register numbers
148b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikenum {
149b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_REG_IP = -1, // instruction pointer
150b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_REG_SP = -2, // stack pointer
151b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik};
152b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
153b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik// 32-bit x86 registers
154b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikenum {
155b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_EAX = 0,
156b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_ECX = 1,
157b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_EDX = 2,
158b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_EBX = 3,
159b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_EBP = 4,
160b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_ESP = 5,
161b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_ESI = 6,
162b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_EDI = 7
163b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik};
164b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
165b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik// 64-bit x86_64 registers
166b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikenum {
167b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RAX = 0,
168b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RDX = 1,
169b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RCX = 2,
170b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RBX = 3,
171b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RSI = 4,
172b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RDI = 5,
173b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RBP = 6,
174b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_RSP = 7,
175b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R8  = 8,
176b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R9  = 9,
177b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R10 = 10,
178b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R11 = 11,
179b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R12 = 12,
180b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R13 = 13,
181b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R14 = 14,
182b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_X86_64_R15 = 15
183b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik};
184b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
185b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik
186b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik// 32-bit ppc register numbers
187b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzikenum {
188b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R0  = 0,
189b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R1  = 1,
190b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R2  = 2,
191b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R3  = 3,
192b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R4  = 4,
193b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R5  = 5,
194b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R6  = 6,
195b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R7  = 7,
196b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R8  = 8,
197b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R9  = 9,
198b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R10 = 10,
199b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R11 = 11,
200b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R12 = 12,
201b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R13 = 13,
202b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R14 = 14,
203b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R15 = 15,
204b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R16 = 16,
205b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R17 = 17,
206b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R18 = 18,
207b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R19 = 19,
208b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R20 = 20,
209b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R21 = 21,
210b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R22 = 22,
211b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R23 = 23,
212b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R24 = 24,
213b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R25 = 25,
214b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R26 = 26,
215b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R27 = 27,
216b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R28 = 28,
217b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R29 = 29,
218b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R30 = 30,
219b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_R31 = 31,
220b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F0  = 32,
221b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F1  = 33,
222b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F2  = 34,
223b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F3  = 35,
224b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F4  = 36,
225b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F5  = 37,
226b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F6  = 38,
227b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F7  = 39,
228b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F8  = 40,
229b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F9  = 41,
230b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F10 = 42,
231b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F11 = 43,
232b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F12 = 44,
233b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F13 = 45,
234b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F14 = 46,
235b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F15 = 47,
236b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F16 = 48,
237b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F17 = 49,
238b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F18 = 50,
239b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F19 = 51,
240b78da9875b6e35187b5d584746c78faaf3230a3dNick Kledzik  UNW_PPC_F20 = 52,
241