VirtualBox

Changeset 92709 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 2, 2021 1:56:44 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148608
Message:

VMM/TM,SUP: Made it thru TM init in driverless mode... bugref:10138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r92705 r92709  
    794794 *
    795795 * @returns The TSC delta value (will not return the special INT64_MAX value).
    796  * @remarks Requires GIP to be initialized and valid.
    797  */
    798 DECLINLINE(int64_t) SUPGetTscDelta(void)
    799 {
    800     PSUPGLOBALINFOPAGE pGip = g_pSUPGlobalInfoPage;
     796 * @param   pGip    The GIP, NULL is okay in ring-3.
     797 * @remarks Requires GIP to be initialized and valid if pGip isn't NULL.
     798 */
     799DECLINLINE(int64_t) SUPGetTscDelta(PSUPGLOBALINFOPAGE pGip)
     800{
     801#ifdef IN_RING3
     802    if (!pGip || pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO)
     803#else
    801804    if (pGip->enmUseTscDelta <= SUPGIPUSETSCDELTA_ROUGHLY_ZERO)
     805#endif
    802806        return 0;
    803807    return SUPGetTscDeltaSlow(pGip);
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