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