VirtualBox

Changeset 93717 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Feb 14, 2022 10:55:27 AM (3 years ago)
Author:
vboxsync
Message:

VMM/TM: Internal timers never have a critical section set, so tmRZTimerGetCritSect doesn't need to do anything special and can just return NULL. bugref:10093 bugref:9943

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r93620 r93717  
    141141            return (PPDMCRITSECT)((uintptr_t)pDevInsR0->pvInstanceDataR0 + offCritSect);
    142142    }
    143     return (PPDMCRITSECT)MMHyperR3ToCC(pVM, pTimer->pCritSect);
     143    RT_NOREF(pVM);
     144    Assert(pTimer->pCritSect == NULL);
     145    return NULL;
    144146}
    145147#endif /* VBOX_STRICT && IN_RING0 */
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