VirtualBox

Changeset 7326 in vbox


Ignore:
Timestamp:
Mar 6, 2008 3:31:57 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28743
Message:

RTCPUSET. Moved RTCPUID to types.h.

Location:
trunk/include/iprt
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mp.h

    r7325 r7326  
    4040/** Maximum number of CPUs we support in one system.
    4141 * @remarks The current limit in Windows (affinity mask)
    42  *
    4342 */
    4443#define RT_MP_MAX_CPU                   64
    4544
    46 
    47 /** A CPU identifier.
    48  * @remarks This doesn't have to correspond to the APIC ID (intel/amd). Nor
    49  *          does it have to correspond to the bits in the affinity mask, at
    50  *          least not until we've sorted out Windows NT. */
    51 typedef RTHCUINTPTR RTCPUID;
    52 /** Pointer to a CPU identifier. */
    53 typedef RTCPUID *PRTCPUID;
    54 /** Pointer to a const CPU identifier. */
    55 typedef RTCPUID const *PCRTCPUID;
    56 /** Nil CPU Id. */
    57 #define NIL_RTCPUID ( (RTCPUID)~0 )
    5845
    5946/**
     
    8471RTDECL(bool) RTMpDoesCpuExist(RTCPUID idCpu);
    8572
    86 /** @todo we need some kind of RTCPUSET and converstion between RTCPUID and it. */
     73/**
     74 * Converts a CPU identifier to a CPU set index.
     75 *
     76 * @returns The CPU set index on success, -1 on failure.
     77 * @param   idCpu       The identifier of the CPU.
     78 */
     79RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu);
     80
    8781
    8882
  • trunk/include/iprt/types.h

    r7108 r7326  
    749749 * NIL GC Physical Address.
    750750 * NIL_RTGCPHYS is used to signal an invalid physical address, similar
    751  * to the NULL pointer. Note that this value may actually be valid in 
     751 * to the NULL pointer. Note that this value may actually be valid in
    752752 * some contexts.
    753753 */
     
    978978/** NIL simple heap handle. */
    979979#define NIL_RTENV                                   ((RTENV)0)
     980
     981/** A CPU identifier.
     982 * @remarks This doesn't have to correspond to the APIC ID (intel/amd). Nor
     983 *          does it have to correspond to the bits in the affinity mask, at
     984 *          least not until we've sorted out Windows NT. */
     985typedef RTHCUINTPTR                                 RTCPUID;
     986/** Pointer to a CPU identifier. */
     987typedef RTCPUID                                    *PRTCPUID;
     988/** Pointer to a const CPU identifier. */
     989typedef RTCPUID const                              *PCRTCPUID;
     990/** Nil CPU Id. */
     991#define NIL_RTCPUID                                 ((RTCPUID)~0)
     992
     993/** A CPU set.
     994 * Treat this as an opaque type and always use RTCpuSet* for manupulating it. */
     995typedef uint64_t                                    RTCPUSET;
     996/** Pointer to a CPU set. */
     997typedef RTCPUSET                                   *PRTCPUSET;
     998/** Pointer to a const CPU set. */
     999typedef RTCPUSET const                             *PCRTCPUSET;
    9801000
    9811001
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