Changeset 36232 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Mar 9, 2011 4:41:09 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70453
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/mp-darwin.cpp
r33540 r36232 70 70 RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu) 71 71 { 72 return idCpu < rtMpDarwinMaxCpus() ? idCpu : -1;72 return idCpu < RTCPUSET_MAX_CPUS && idCpu < rtMpDarwinMaxCpus() ? idCpu : -1; 73 73 } 74 74 -
trunk/src/VBox/Runtime/r3/freebsd/mp-freebsd.cpp
r34170 r36232 66 66 RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu) 67 67 { 68 return idCpu < rtMpFreeBsdMaxCpus() ? idCpu : -1;68 return idCpu < RTCPUSET_MAX_CPUS && idCpu < rtMpFreeBsdMaxCpus() ? idCpu : -1; 69 69 } 70 70 -
trunk/src/VBox/Runtime/r3/win/mp-win.cpp
r28800 r36232 34 34 #include <iprt/cpuset.h> 35 35 #include <iprt/assert.h> 36 37 38 AssertCompile(MAXIMUM_PROCESSORS <= RTCPUSET_MAX_CPUS); 36 39 37 40 … … 93 96 SYSTEM_INFO SysInfo; 94 97 GetSystemInfo(&SysInfo); 98 #ifdef RT_WITH_LOTS_OF_CPUS 99 # error "port me" 100 #endif 95 101 return RTCpuSetFromU64(pSet, SysInfo.dwActiveProcessorMask); 96 102 }
Note:
See TracChangeset
for help on using the changeset viewer.