Changeset 11810 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Aug 29, 2008 11:52:39 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 35640
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/mp-darwin.cpp
r11708 r11810 42 42 #include <sys/fcntl.h> 43 43 #include <errno.h> 44 #include <mach/mach.h> 44 45 45 46 #include <iprt/mp.h> … … 91 92 RTDECL(bool) RTMpIsCpuOnline(RTCPUID idCpu) 92 93 { 93 #if 194 #if 0 94 95 return RTMpIsCpuPossible(idCpu); 95 96 #else 96 97 /** @todo proper ring-3 support on darwin, see #3014. */ 98 natural_t nCpus; 99 processor_basic_info_t pinfo; 100 mach_msg_type_number_t count; 101 kern_return_t krc = host_processor_info(mach_host_self(), 102 PROCESSOR_BASIC_INFO, &nCpus, (processor_info_array_t*)&pinfo, &count); 103 AssertReturn (krc == KERN_SUCCESS, true); 104 bool isOnline = idCpu < nCpus ? pinfo[idCpu].running : true; 105 vm_deallocate(mach_task_self(), (vm_address_t)pinfo, count * sizeof(*pinfo)); 106 return isOnline; 97 107 #endif 98 108 } … … 131 141 RTDECL(PRTCPUSET) RTMpGetOnlineSet(PRTCPUSET pSet) 132 142 { 133 #if 1143 #if 0 134 144 return RTMpGetSet(pSet); 135 145 #else
Note:
See TracChangeset
for help on using the changeset viewer.