VirtualBox

Changeset 91813 in vbox


Ignore:
Timestamp:
Oct 18, 2021 9:45:16 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147599
Message:

VMM/PDMCritSectRw: Don't preempt while on custom stack. [build fix] bugref:10124

File:
1 edited

Legend:

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

    r91812 r91813  
    548548 * @param   fNoVal      No validation records.
    549549 */
    550 #ifndef VMM_R0_SWITCH_STACK
     550#if !defined(VMM_R0_SWITCH_STACK) || !defined(IN_RING0)
    551551static int pdmCritSectRwEnterShared(PVMCC pVM, PPDMCRITSECTRW pThis, int rcBusy, bool fTryOnly,
    552552                                    PCRTLOCKVALSRCPOS pSrcPos, bool fNoVal)
     
    735735    /* not reached */
    736736}
    737 #ifdef VMM_R0_SWITCH_STACK
     737#if defined(VMM_R0_SWITCH_STACK) && defined(IN_RING0)
    738738decltype(StkBack_pdmCritSectRwEnterShared) pdmCritSectRwEnterShared;
    739739#endif
     
    892892 *          PDMCritSectRwLeaveExcl, RTCritSectRwLeaveShared.
    893893 */
    894 #ifndef VMM_R0_SWITCH_STACK
     894#if !defined(VMM_R0_SWITCH_STACK) || !defined(IN_RING0)
    895895static int pdmCritSectRwLeaveSharedWorker(PVMCC pVM, PPDMCRITSECTRW pThis, bool fNoVal)
    896896#else
     
    10511051    return VINF_SUCCESS;
    10521052}
    1053 #ifdef VMM_R0_SWITCH_STACK
     1053#if defined(VMM_R0_SWITCH_STACK) && defined(IN_RING0)
    10541054decltype(StkBack_pdmCritSectRwLeaveSharedWorker) pdmCritSectRwLeaveSharedWorker;
    10551055#endif
     
    13171317 * @param   fNoVal      No validation records.
    13181318 */
    1319 #ifndef VMM_R0_SWITCH_STACK
     1319#if !defined(VMM_R0_SWITCH_STACK) || !defined(IN_RING0)
    13201320static int pdmCritSectRwEnterExcl(PVMCC pVM, PPDMCRITSECTRW pThis, int rcBusy, bool fTryOnly,
    13211321                                  PCRTLOCKVALSRCPOS pSrcPos, bool fNoVal)
     
    15361536#endif
    15371537}
    1538 #ifdef VMM_R0_SWITCH_STACK
     1538#if defined(VMM_R0_SWITCH_STACK) && defined(IN_RING0)
    15391539decltype(StkBack_pdmCritSectRwEnterExcl) pdmCritSectRwEnterExcl;
    15401540#endif
     
    16931693 * @sa      PDMCritSectRwLeaveShared, RTCritSectRwLeaveExcl.
    16941694 */
    1695 #ifndef VMM_R0_SWITCH_STACK
     1695#if !defined(VMM_R0_SWITCH_STACK) || !defined(IN_RING0)
    16961696static int pdmCritSectRwLeaveExclWorker(PVMCC pVM, PPDMCRITSECTRW pThis, bool fNoVal)
    16971697#else
     
    19311931#endif
    19321932}
    1933 #ifdef VMM_R0_SWITCH_STACK
     1933#if defined(VMM_R0_SWITCH_STACK) && defined(IN_RING0)
    19341934decltype(StkBack_pdmCritSectRwLeaveExclWorker) pdmCritSectRwLeaveExclWorker;
    19351935#endif
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