Changeset 53430 in vbox for trunk/src/VBox/Runtime/common/time
- Timestamp:
- Dec 3, 2014 1:18:41 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97118
- Location:
- trunk/src/VBox/Runtime/common/time
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/time/timesup.cpp
r48935 r53430 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 124 124 if ( pGip 125 125 && pGip->u32Magic == SUPGLOBALINFOPAGE_MAGIC 126 && ( pGip->u32Mode == SUPGIPMODE_SYNC_TSC 126 && ( pGip->u32Mode == SUPGIPMODE_INVARIANT_TSC 127 || pGip->u32Mode == SUPGIPMODE_SYNC_TSC 127 128 || pGip->u32Mode == SUPGIPMODE_ASYNC_TSC)) 128 129 return rtTimeNanoTSInternalRediscover(pData); … … 146 147 if ( pGip 147 148 && pGip->u32Magic == SUPGLOBALINFOPAGE_MAGIC 148 && ( pGip->u32Mode == SUPGIPMODE_SYNC_TSC 149 && ( pGip->u32Mode == SUPGIPMODE_INVARIANT_TSC 150 || pGip->u32Mode == SUPGIPMODE_SYNC_TSC 149 151 || pGip->u32Mode == SUPGIPMODE_ASYNC_TSC)) 150 152 { 151 153 if (ASMCpuId_EDX(1) & X86_CPUID_FEATURE_EDX_SSE2) 152 iWorker = pGip->u32Mode == SUPGIPMODE_ SYNC_TSC154 iWorker = pGip->u32Mode == SUPGIPMODE_INVARIANT_TSC || pGip->u32Mode == SUPGIPMODE_SYNC_TSC 153 155 ? RTTIMENANO_WORKER_SYNC_LFENCE 154 156 : RTTIMENANO_WORKER_ASYNC_LFENCE; 155 157 else 156 iWorker = pGip->u32Mode == SUPGIPMODE_ SYNC_TSC158 iWorker = pGip->u32Mode == SUPGIPMODE_INVARIANT_TSC || pGip->u32Mode == SUPGIPMODE_SYNC_TSC 157 159 ? RTTIMENANO_WORKER_SYNC_CPUID 158 160 : RTTIMENANO_WORKER_ASYNC_CPUID; -
trunk/src/VBox/Runtime/common/time/timesupA.mac
r44528 r53430 5 5 6 6 ; 7 ; Copyright (C) 2006-201 1Oracle Corporation7 ; Copyright (C) 2006-2014 Oracle Corporation 8 8 ; 9 9 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 126 126 mov u32UpdateIntervalTSC, edx 127 127 rdtsc 128 SupTscDeltaApply edi ; Apply inter-cpu TSC-delta to have the normalized TSC value in edx:eax 128 129 mov ecx, [edi + SUPGIPCPU.u64NanoTS] 129 130 mov u64CurNanoTS, ecx … … 544 545 mov u32UpdateIntervalTSC, [pGipCPU + SUPGIPCPU.u32UpdateIntervalTSC] 545 546 rdtsc 547 SUPTscDeltaApply pGipCPU 546 548 mov u64PrevNanoTS, [pData + RTTIMENANOTSDATA.pu64Prev] 547 549 mov u64PrevNanoTS, [u64PrevNanoTS] -
trunk/src/VBox/Runtime/common/time/timesupref.h
r44528 r53430 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as
Note:
See TracChangeset
for help on using the changeset viewer.