VirtualBox

Ignore:
Timestamp:
Sep 30, 2014 10:20:13 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
96324
Message:

HostDrivers/support: reset the minimum compare-read time variable on each try.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r52892 r52895  
    56575657            if (RT_SUCCESS(rc))
    56585658            {
     5659#ifdef DEBUG_ramshankar
     5660                for (unsigned iCpu = 0; iCpu < pGip->cCpus; iCpu++)
     5661                    OSDBGPRINT(("supdrvGipCreate: cpu[%u] delta %lld\n", iCpu, pGip->aCPUs[iCpu].i64TSCDelta));
     5662#endif
     5663
    56595664                /*
    56605665                 * Create the timer.
     
    61056110    PSUPGIPCPU         pGipCpuMaster = &pGip->aCPUs[idxMaster];
    61066111    PSUPGIPCPU         pGipCpuWorker = &pGip->aCPUs[idxWorker];
    6107     uint64_t           uMinCmpReadTime = UINT64_MAX;
    61086112    int                cTriesLeft = 12;
    61096113
     
    61606164    while (cTriesLeft-- > 0)
    61616165    {
    6162         unsigned i;
     6166        unsigned    i;
     6167        uint64_t    uMinCmpReadTime = UINT64_MAX;
    61636168        RTCCUINTREG uFlags = ASMIntDisableFlags();          /* Disable interrupts for the duration of a try. */
    61646169        for (i = 0; i < GIP_TSC_DELTA_LOOPS; i++)
     
    62096214                while (ASMAtomicReadU32(&g_pTscDeltaSync->u) != GIP_TSC_DELTA_SYNC_START)
    62106215                    ;
     6216                Assert(pGipCpuMaster->u64TSCSample == GIP_TSC_DELTA_RSVD);
    62116217                ASMAtomicWriteU32(&g_pTscDeltaSync->u, GIP_TSC_DELTA_SYNC_WORKER_READY);
    62126218
Note: See TracChangeset for help on using the changeset viewer.

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