OLD | NEW |
1 /* Copyright (c) 2006, Google Inc. | 1 /* Copyright (c) 2006, Google Inc. |
2 * All rights reserved. | 2 * All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 /* Floating-Point Registers State register (FPRS) for SPARC V9 | 131 /* Floating-Point Registers State register (FPRS) for SPARC V9 |
132 * TBR for for SPARC V7/V8 | 132 * TBR for for SPARC V7/V8 |
133 */ | 133 */ |
134 uint64_t fprs; | 134 uint64_t fprs; |
135 | 135 |
136 /* The next field is included with MD_CONTEXT_SPARC_FLOATING_POINT */ | 136 /* The next field is included with MD_CONTEXT_SPARC_FLOATING_POINT */ |
137 MDFloatingSaveAreaSPARC float_save; | 137 MDFloatingSaveAreaSPARC float_save; |
138 | 138 |
139 } MDRawContextSPARC; /* CONTEXT_SPARC */ | 139 } MDRawContextSPARC; /* CONTEXT_SPARC */ |
140 | 140 |
| 141 /* Indices into g_r for registers with a dedicated or conventional purpose. */ |
| 142 enum MDSPARCRegisterNumbers { |
| 143 MD_CONTEXT_SPARC_REG_SP = 14 |
| 144 }; |
| 145 |
141 /* For (MDRawContextSPARC).context_flags. These values indicate the type of | 146 /* For (MDRawContextSPARC).context_flags. These values indicate the type of |
142 * context stored in the structure. MD_CONTEXT_SPARC is Breakpad-defined. Its | 147 * context stored in the structure. MD_CONTEXT_SPARC is Breakpad-defined. Its |
143 * value was chosen to avoid likely conflicts with MD_CONTEXT_* for other | 148 * value was chosen to avoid likely conflicts with MD_CONTEXT_* for other |
144 * CPUs. */ | 149 * CPUs. */ |
145 #define MD_CONTEXT_SPARC 0x10000000 | 150 #define MD_CONTEXT_SPARC 0x10000000 |
146 #define MD_CONTEXT_SPARC_CONTROL (MD_CONTEXT_SPARC | 0x00000001) | 151 #define MD_CONTEXT_SPARC_CONTROL (MD_CONTEXT_SPARC | 0x00000001) |
147 #define MD_CONTEXT_SPARC_INTEGER (MD_CONTEXT_SPARC | 0x00000002) | 152 #define MD_CONTEXT_SPARC_INTEGER (MD_CONTEXT_SPARC | 0x00000002) |
148 #define MD_CONTEXT_SAPARC_FLOATING_POINT (MD_CONTEXT_SPARC | 0x00000004) | 153 #define MD_CONTEXT_SAPARC_FLOATING_POINT (MD_CONTEXT_SPARC | 0x00000004) |
149 #define MD_CONTEXT_SAPARC_EXTRA (MD_CONTEXT_SPARC | 0x00000008) | 154 #define MD_CONTEXT_SAPARC_EXTRA (MD_CONTEXT_SPARC | 0x00000008) |
150 | 155 |
151 #define MD_CONTEXT_SPARC_FULL (MD_CONTEXT_SPARC_CONTROL | \ | 156 #define MD_CONTEXT_SPARC_FULL (MD_CONTEXT_SPARC_CONTROL | \ |
152 MD_CONTEXT_SPARC_INTEGER) | 157 MD_CONTEXT_SPARC_INTEGER) |
153 | 158 |
154 #define MD_CONTEXT_SPARC_ALL (MD_CONTEXT_SPARC_FULL | \ | 159 #define MD_CONTEXT_SPARC_ALL (MD_CONTEXT_SPARC_FULL | \ |
155 MD_CONTEXT_SAPARC_FLOATING_POINT | \ | 160 MD_CONTEXT_SAPARC_FLOATING_POINT | \ |
156 MD_CONTEXT_SAPARC_EXTRA) | 161 MD_CONTEXT_SAPARC_EXTRA) |
157 | 162 |
158 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_CPU_SPARC_H__ */ | 163 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_CPU_SPARC_H__ */ |
OLD | NEW |