Changeset 10202 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jul 4, 2008 7:25:27 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 32774
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPCI.cpp
r8155 r10202 66 66 /** @def PCI_UNLOCK 67 67 * 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) \ 70 69 do { \ 71 70 int rc2 = PDMINS2DATA(pDevIns, PCIBus *)->CTXALLSUFF(pPciHlp)->pfnLock((pDevIns), rc); \ … … 73 72 return rc2; \ 74 73 } while (0) 75 # 74 #define PCI_UNLOCK(pDevIns) \ 76 75 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 */81 76 82 77 -
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r8155 r10202 62 62 /** @def IOAPIC_UNLOCK 63 63 * 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) \ 66 65 do { \ 67 66 int rc2 = (pThis)->CTXALLSUFF(pApicHlp)->pfnLock((pThis)->CTXSUFF(pDevIns), rc); \ … … 69 68 return rc2; \ 70 69 } while (0) 71 # 70 #define APIC_UNLOCK(pThis) \ 72 71 (pThis)->CTXALLSUFF(pApicHlp)->pfnUnlock((pThis)->CTXSUFF(pDevIns)) 73 # 72 #define IOAPIC_LOCK(pThis, rc) \ 74 73 do { \ 75 74 int rc2 = (pThis)->CTXALLSUFF(pIoApicHlp)->pfnLock((pThis)->CTXSUFF(pDevIns), rc); \ … … 77 76 return rc2; \ 78 77 } 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)) 86 79 87 80 … … 828 821 { 829 822 APICState *s = PDMINS2DATA(pDevIns, APICState *); 830 # ifdef VBOX_WITH_PDM_LOCK831 823 s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR); 832 # endif833 824 #endif /* VBOX */ 834 825 … … 1610 1601 { 1611 1602 APICState *s = PDMINS2DATA(pDevIns, APICState *); 1612 #ifdef VBOX_WITH_PDM_LOCK1613 1603 s->pApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR); 1614 #endif1615 1604 apic_reset(s); 1616 1605 /* Clear any pending APIC interrupt action flag. */ … … 1956 1945 { 1957 1946 IOAPICState *s = PDMINS2DATA(pDevIns, IOAPICState *); 1958 #ifdef VBOX_WITH_PDM_LOCK1959 1947 s->pIoApicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR); 1960 #endif1961 1948 ioapic_reset(s); 1962 1949 IOAPIC_UNLOCK(s); -
trunk/src/VBox/Devices/PC/DevPIC.cpp
r9387 r10202 38 38 /** @def PIC_UNLOCK 39 39 * 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) \ 42 41 do { \ 43 42 int rc2 = (pThis)->CTXALLSUFF(pPicHlp)->pfnLock((pThis)->CTXSUFF(pDevIns), rc); \ … … 45 44 return rc2; \ 46 45 } while (0) 47 # 46 #define PIC_UNLOCK(pThis) \ 48 47 (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 */53 48 54 49 … … 890 885 unsigned i; 891 886 LogFlow(("picReset:\n")); 892 #ifdef VBOX_WITH_PDM_LOCK893 887 pData->pPicHlpR3->pfnLock(pDevIns, VERR_INTERNAL_ERROR); 894 #endif895 888 896 889 for (i = 0; i < ELEMENTS(pData->aPics); i++)
Note:
See TracChangeset
for help on using the changeset viewer.