VirtualBox

Changeset 56753 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Jul 2, 2015 12:08:11 PM (10 years ago)
Author:
vboxsync
Message:

timer-r0drv-nt.cpp: Fixed bug in RTTimerStart which would cause the interval between tick #1 ant tick #2 to be shorter if u64First is non-zero. Should cure the failing testcase.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/timer-r0drv-nt.cpp

    r56290 r56753  
    9595    uint64_t                u64NanoInterval;
    9696#ifdef RTR0TIMER_NT_MANUAL_RE_ARM
    97     /** The NT start time . */
     97    /** The desired NT time of the first tick. */
    9898    uint64_t                uNtStartTime;
    9999#endif
     
    372372    ASMAtomicWriteBool(&pTimer->fSuspended, false);
    373373#ifdef RTR0TIMER_NT_MANUAL_RE_ARM
    374     pTimer->uNtStartTime = rtTimerNtQueryInterruptTime();
     374    pTimer->uNtStartTime = rtTimerNtQueryInterruptTime() + u64First / 100;
    375375    KeSetTimerEx(&pTimer->NtTimer, DueTime, 0, pMasterDpc);
    376376#else
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