Changeset 7326 in vbox
- Timestamp:
- Mar 6, 2008 3:31:57 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28743
- Location:
- trunk/include/iprt
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mp.h
r7325 r7326 40 40 /** Maximum number of CPUs we support in one system. 41 41 * @remarks The current limit in Windows (affinity mask) 42 *43 42 */ 44 43 #define RT_MP_MAX_CPU 64 45 44 46 47 /** A CPU identifier.48 * @remarks This doesn't have to correspond to the APIC ID (intel/amd). Nor49 * does it have to correspond to the bits in the affinity mask, at50 * 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 )58 45 59 46 /** … … 84 71 RTDECL(bool) RTMpDoesCpuExist(RTCPUID idCpu); 85 72 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 */ 79 RTDECL(int) RTMpCpuIdToSetIndex(RTCPUID idCpu); 80 87 81 88 82 -
trunk/include/iprt/types.h
r7108 r7326 749 749 * NIL GC Physical Address. 750 750 * 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 752 752 * some contexts. 753 753 */ … … 978 978 /** NIL simple heap handle. */ 979 979 #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. */ 985 typedef RTHCUINTPTR RTCPUID; 986 /** Pointer to a CPU identifier. */ 987 typedef RTCPUID *PRTCPUID; 988 /** Pointer to a const CPU identifier. */ 989 typedef 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. */ 995 typedef uint64_t RTCPUSET; 996 /** Pointer to a CPU set. */ 997 typedef RTCPUSET *PRTCPUSET; 998 /** Pointer to a const CPU set. */ 999 typedef RTCPUSET const *PCRTCPUSET; 980 1000 981 1001
Note:
See TracChangeset
for help on using the changeset viewer.