VirtualBox

Changeset 36232 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
Mar 9, 2011 4:41:09 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70453
Message:

RTCPUSET, SUPDrv: Preparation for supporting 256 CPUs/cores/threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/RTMpCpuIdToSetIndex-generic.cpp

    r28800 r36232  
    3232#include "internal/iprt.h"
    3333
     34#include <iprt/cpuset.h>
     35
    3436
    3537RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu)
    3638{
    37     return idCpu != NIL_RTCPUID ? (int) idCpu : -1;
     39    return idCpu < RTCPUSET_MAX_CPUS && idCpu != NIL_RTCPUID ? (int) idCpu : -1;
    3840}
    3941RT_EXPORT_SYMBOL(RTMpCpuIdToSetIndex);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette