Changeset 54480 in vbox
- Timestamp:
- Feb 25, 2015 11:13:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp
r54465 r54480 870 870 || cNsElapsed < RT_NS_1SEC * 2) 871 871 { 872 supdrvGipInitSetCpuFreq(pGip, cNsElapsed, cTscTicksElapsed, iTick);872 supdrvGipInitSetCpuFreq(pGip, cNsElapsed, cTscTicksElapsed, (uint32_t)iTick); 873 873 874 874 /* … … 1499 1499 static DECLCALLBACK(void) supdrvGipInitDetermineAsyncTscWorker(RTCPUID idCpu, void *pvUser1, void *pvUser2) 1500 1500 { 1501 Assert(RTMpCpuIdToSetIndex(idCpu) == (intptr_t)pvUser2); 1501 1502 ASMAtomicWriteU64((uint64_t volatile *)pvUser1, ASMReadTSC()); 1502 1503 } … … 1536 1537 { 1537 1538 uint64_t CurTsc; 1538 rc = RTMpOnSpecific(RTMpCpuIdFromSetIndex(iCpu), supdrvGipInitDetermineAsyncTscWorker, &CurTsc, NULL); 1539 rc = RTMpOnSpecific(RTMpCpuIdFromSetIndex(iCpu), supdrvGipInitDetermineAsyncTscWorker, 1540 &CurTsc, (void *)(uintptr_t)iCpu); 1539 1541 if (RT_SUCCESS(rc)) 1540 1542 { … … 3860 3862 pArgs->pSyncMaster = NULL; 3861 3863 pArgs->pSyncWorker = NULL; 3862 pArgs->cMaxTscTicks = ASMAtomicReadU64(&pGip->u64CpuHz) / 1024; /* 976us */3864 pArgs->cMaxTscTicks = ASMAtomicReadU64(&pGip->u64CpuHz) / 512; /* 1953 us */ 3863 3865 3864 3866 #ifdef GIP_TSC_DELTA_METHOD_1
Note:
See TracChangeset
for help on using the changeset viewer.