VirtualBox

Changeset 55246 in vbox


Ignore:
Timestamp:
Apr 14, 2015 1:02:36 PM (10 years ago)
Author:
vboxsync
Message:

SUPReadTscWithDelta: Apply the delta correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLibAll.cpp

    r54335 r55246  
    153153        int64_t iTscDelta = pGip->aCPUs[iGipCpu].i64TSCDelta;
    154154        if (RT_LIKELY(iTscDelta != INT64_MAX))
    155             return uTsc + iTscDelta;
     155            return uTsc - iTscDelta;
    156156
    157157# ifdef IN_RING3
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