VirtualBox

Changeset 10202 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 4, 2008 7:25:27 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32774
Message:

removed VBOX_WITH_PDM_LOCK

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

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

    r8155 r10202  
    6666/** @def PCI_UNLOCK
    6767 * Releases the PDM lock. This is a NOP if locking is disabled. */
    68 #ifdef VBOX_WITH_PDM_LOCK
    69 # define PCI_LOCK(pDevIns, rc) \
     68#define PCI_LOCK(pDevIns, rc) \
    7069    do { \
    7170        int rc2 = PDMINS2DATA(pDevIns, PCIBus *)->CTXALLSUFF(pPciHlp)->pfnLock((pDevIns), rc); \
     
    7372            return rc2; \
    7473    } while (0)
    75 # define PCI_UNLOCK(pDevIns) \
     74#define PCI_UNLOCK(pDevIns) \
    7675    PDMINS2DATA(pDevIns, PCIBus *)->CTXALLSUFF(pPciHlp)->pfnUnlock(pDevIns)
    77 #else /* !VBOX_WITH_PDM_LOCK */
    78 # define PCI_LOCK(pThis, rc)   do { } while (0)
    79 # define PCI_UNLOCK(pThis)     do { } while (0)
    80 #endif /* !VBOX_WITH_PDM_LOCK */
    8176
    8277
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r8155 r10202  
    6262/** @def IOAPIC_UNLOCK
    6363 * Releases the PDM lock. This is a NOP if locking is disabled. */
    64 #ifdef VBOX_WITH_PDM_LOCK
    65 # define APIC_LOCK(pThis, rc) \
     64#define APIC_LOCK(pThis, rc) \
    6665    do { \
    6766        int rc2 = (pThis)->CTXALLSUFF(pApicHlp)->pfnLock((pThis)->CTXSUFF(pDevIns), rc); \
     
    6968            return rc2; \
    7069    } while (0)
    71 # define APIC_UNLOCK(pThis) \
     70#define APIC_UNLOCK(pThis) \
    7271    (pThis)->CTXALLSUFF(pApicHlp)->pfnUnlock((pThis)->CTXSUFF(pDevIns))
    73 # define IOAPIC_LOCK(pThis, rc) \
     72#define IOAPIC_LOCK(pThis, rc) \
    7473    do { \
    7574        int rc2 = (pThis)->CTXALLSUFF(pIoApicHlp)->pfnLock((pThis)->CTXSUFF(pDevIns), rc); \
     
    7776            return rc2; \
    7877    } while (0)
    79 # define IOAPIC_UNLOCK(pThis) (pThis)->CTXALLSUFF(pIoApicHlp)->pfnUnlock((pThis)->CTXSUFF(pDevIns))
    80 #else /* !VBOX_WITH_PDM_LOCK */
    81 # define APIC_LOCK(pThis, rc)   do { } while (0)
    82 # define APIC_UNLOCK(pThis)     do { } while (0)
    83 # define IOAPIC_LOCK(pThis, rc) do { } while (0)
    84 # define IOAPIC_UNLOCK(pThis)   do { } while (0)
    85 #endif /* !VBOX_WITH_PDM_LOCK */
     78#define IOAPIC_UNLOCK(pThis) (pThis)->CTXALLSUFF(pIoApicHlp)->pfnUnlock((pThis)->CTXSUFF(pDevIns))
    8679
    8780
     
    828821{
    829822    APICState *s = PDMINS2DATA(pDevIns, APICState *);
    830 # ifdef VBOX_WITH_PDM_LOCK
    831823    s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR);
    832 # endif
    833824#endif /* VBOX */
    834825
     
    16101601{
    16111602    APICState *s = PDMINS2DATA(pDevIns, APICState *);
    1612 #ifdef VBOX_WITH_PDM_LOCK
    16131603    s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR);
    1614 #endif
    16151604    apic_reset(s);
    16161605    /* Clear any pending APIC interrupt action flag. */
     
    19561945{
    19571946    IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *);
    1958 #ifdef VBOX_WITH_PDM_LOCK
    19591947    s->pIoApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR);
    1960 #endif
    19611948    ioapic_reset(s);
    19621949    IOAPIC_UNLOCK(s);
  • trunk/src/VBox/Devices/PC/DevPIC.cpp

    r9387 r10202  
    3838/** @def PIC_UNLOCK
    3939 * Releases the PDM lock. This is a NOP if locking is disabled. */
    40 #ifdef VBOX_WITH_PDM_LOCK
    41 # define PIC_LOCK(pThis, rc) \
     40#define PIC_LOCK(pThis, rc) \
    4241    do { \
    4342        int rc2 = (pThis)->CTXALLSUFF(pPicHlp)->pfnLock((pThis)->CTXSUFF(pDevIns), rc); \
     
    4544            return rc2; \
    4645    } while (0)
    47 # define PIC_UNLOCK(pThis) \
     46#define PIC_UNLOCK(pThis) \
    4847    (pThis)->CTXALLSUFF(pPicHlp)->pfnUnlock((pThis)->CTXSUFF(pDevIns))
    49 #else /* !VBOX_WITH_PDM_LOCK */
    50 # define PIC_LOCK(pThis, rc)   do { } while (0)
    51 # define PIC_UNLOCK(pThis)     do { } while (0)
    52 #endif /* !VBOX_WITH_PDM_LOCK */
    5348
    5449
     
    890885    unsigned    i;
    891886    LogFlow(("picReset:\n"));
    892 #ifdef VBOX_WITH_PDM_LOCK
    893887    pData->pPicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR);
    894 #endif
    895888
    896889    for (i = 0; i < ELEMENTS(pData->aPics); i++)
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