Fix OS X compile issues, bug1332.

This commit is contained in:
Wilson Snyder 2018-08-27 06:15:12 -04:00
parent ae98e87222
commit 15abb4d590
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public:
return sched_getcpu();
#elif defined(__APPLE__)
uint32_t info[4];
__cpuid_count(1, 0, info[0], info[1], info[2], info[3])
__cpuid_count(1, 0, info[0], info[1], info[2], info[3]);
/* info[1] is EBX, bits 24-31 are APIC ID */
if ((info[3] & (1 << 9)) == 0) {
return -1; /* no APIC on chip */