VirtualBox

Changeset 16328 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jan 28, 2009 7:58:40 PM (16 years ago)
Author:
vboxsync
Message:

darwin-r0/RTMpGetSet: Generic implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/mp-r0drv-darwin.cpp

    r15843 r16328  
    3636
    3737#include <iprt/mp.h>
     38#include <iprt/cpuset.h>
    3839#include <iprt/err.h>
    3940#include <iprt/asm.h>
     
    8283RTDECL(PRTCPUSET) RTMpGetSet(PRTCPUSET pSet)
    8384{
    84 
     85    RTCPUID idCpu;
     86
     87    RTCpuSetEmpty(pSet);
     88    idCpu = RTMpGetMaxCpuId();
     89    do
     90    {
     91        if (RTMpIsCpuPossible(idCpu))
     92            RTCpuSetAdd(pSet, idCpu);
     93    } while (idCpu-- > 0);
     94    return pSet;
    8595}
    8696
Note: See TracChangeset for help on using the changeset viewer.

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