VirtualBox

Changeset 88840 in vbox


Ignore:
Timestamp:
May 3, 2021 4:10:17 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144174
Message:

AMD IOMMU: bugref:9654 Lock nit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp

    r88818 r88840  
    173173
    174174/** Acquires the cache lock. */
    175 #define IOMMU_CACHE_LOCK(a_pDevIns, a_pThis) \
     175#ifdef IN_RING3
     176# define IOMMU_CACHE_LOCK(a_pDevIns, a_pThis)       PDMDevHlpCritSectEnter((a_pDevIns), &(a_pThis)->CritSectCache, VERR_IGNORED)
     177#else
     178# define IOMMU_CACHE_LOCK(a_pDevIns, a_pThis) \
    176179    do { \
    177180        int const rcLock = PDMDevHlpCritSectEnter((a_pDevIns), &(a_pThis)->CritSectCache, VINF_SUCCESS); \
    178181        AssertRC(rcLock); \
    179182    } while (0)
     183#endif
    180184
    181185/** Releases the cache lock.  */
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