VirtualBox

Changeset 90446 in vbox for trunk/src


Ignore:
Timestamp:
Jul 30, 2021 10:18:49 PM (4 years ago)
Author:
vboxsync
Message:

PDM: Mark the critsect enter functions with DECL_CHECK_RETURN_NOT_R3. bugref:6695

File:
1 edited

Legend:

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

    r90433 r90446  
    525525 *          function.
    526526 */
    527 VMMDECL(int) PDMCritSectEnter(PVMCC pVM, PPDMCRITSECT pCritSect, int rcBusy)
     527VMMDECL(DECL_CHECK_RETURN_NOT_R3(int)) PDMCritSectEnter(PVMCC pVM, PPDMCRITSECT pCritSect, int rcBusy)
    528528{
    529529#ifndef PDMCRITSECT_STRICT
     
    555555 *                              acquired from.  Optional.
    556556 */
    557 VMMDECL(int) PDMCritSectEnterDebug(PVMCC pVM, PPDMCRITSECT pCritSect, int rcBusy, RTHCUINTPTR uId, RT_SRC_POS_DECL)
     557VMMDECL(DECL_CHECK_RETURN_NOT_R3(int))
     558PDMCritSectEnterDebug(PVMCC pVM, PPDMCRITSECT pCritSect, int rcBusy, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    558559{
    559560#ifdef PDMCRITSECT_STRICT
     
    644645 * @param   pCritSect   The critical section.
    645646 */
    646 VMMDECL(int) PDMCritSectTryEnter(PVMCC pVM, PPDMCRITSECT pCritSect)
     647VMMDECL(DECL_CHECK_RETURN_NOT_R3(int)) PDMCritSectTryEnter(PVMCC pVM, PPDMCRITSECT pCritSect)
    647648{
    648649#ifndef PDMCRITSECT_STRICT
     
    671672 *                              acquired from.  Optional.
    672673 */
    673 VMMDECL(int) PDMCritSectTryEnterDebug(PVMCC pVM, PPDMCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL)
     674VMMDECL(DECL_CHECK_RETURN_NOT_R3(int))
     675PDMCritSectTryEnterDebug(PVMCC pVM, PPDMCRITSECT pCritSect, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    674676{
    675677#ifdef PDMCRITSECT_STRICT
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