@@ -138,7 +138,7 @@ extern "C" int getargs(procsinfo*, int, char*, int);
138
138
#define ERROR_MP_VMGETINFO_FAILED 102
139
139
#define ERROR_MP_VMGETINFO_CLAIMS_NO_SUPPORT_FOR_64K 103
140
140
141
- // excerpts from systemcfg.h that might be missing on older os levels
141
+ // excerpts from sys/ systemcfg.h that might be missing on older os levels
142
142
#ifndef PV_7
143
143
#define PV_7 0x200000 /* Power PC 7 */
144
144
#endif
@@ -157,7 +157,12 @@ extern "C" int getargs(procsinfo*, int, char*, int);
157
157
#ifndef PV_9_Compat
158
158
#define PV_9_Compat 0x408000 /* Power PC 9 */
159
159
#endif
160
-
160
+ #ifndef PV_10
161
+ #define PV_10 0x500000 /* Power PC 10 */
162
+ #endif
163
+ #ifndef PV_10_Compat
164
+ #define PV_10_Compat 0x508000 /* Power PC 10 */
165
+ #endif
161
166
162
167
static address resolve_function_descriptor_to_code_pointer (address p);
163
168
@@ -1306,6 +1311,9 @@ void os::print_memory_info(outputStream* st) {
1306
1311
void os::get_summary_cpu_info (char * buf, size_t buflen) {
1307
1312
// read _system_configuration.version
1308
1313
switch (_system_configuration.version ) {
1314
+ case PV_10:
1315
+ strncpy (buf, " Power PC 10" , buflen);
1316
+ break ;
1309
1317
case PV_9:
1310
1318
strncpy (buf, " Power PC 9" , buflen);
1311
1319
break ;
@@ -1345,6 +1353,9 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
1345
1353
case PV_9_Compat:
1346
1354
strncpy (buf, " PV_9_Compat" , buflen);
1347
1355
break ;
1356
+ case PV_10_Compat:
1357
+ strncpy (buf, " PV_10_Compat" , buflen);
1358
+ break ;
1348
1359
default :
1349
1360
strncpy (buf, " unknown" , buflen);
1350
1361
}
0 commit comments