Changeset 12982 in vbox for trunk/src/VBox
- Timestamp:
- Oct 4, 2008 9:46:15 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMDevHlp.cpp
r12981 r12982 47 47 * Defined Constants And Macros * 48 48 *******************************************************************************/ 49 /* 50 * Allow physical read and writes from any thread49 /** Allow physical read and writes from any thread. 50 * (pdmR3DevHlp_PhysRead and pdmR3DevHlp_PhysWrite.) 51 51 */ 52 52 #define PDM_PHYS_READWRITE_FROM_ANY_THREAD -
trunk/src/VBox/VMM/PDMDevMiscHlp.cpp
r12980 r12982 50 50 LogFlow(("pdmR3PicHlp_SetInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT_PIC %d -> 1\n", 51 51 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pVM, 0, VM_FF_INTERRUPT_PIC))); 52 52 53 /* for PIC we always deliver to CPU 0, MP use APIC */ 53 54 VMCPU_FF_SET(pVM, 0, VM_FF_INTERRUPT_PIC); 54 55 REMR3NotifyInterruptSet(pVM); 55 VMR3NotifyFF(pVM, true); 56 VMR3NotifyFF(pVM, true); /** @todo SMP: notify the right cpu. */ 56 57 } 57 58 … … 63 64 LogFlow(("pdmR3PicHlp_ClearInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT_PIC %d -> 0\n", 64 65 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pDevIns->Internal.s.pVMR3, 0, VM_FF_INTERRUPT_PIC))); 66 65 67 /* for PIC we always deliver to CPU 0, MP use APIC */ 66 68 VMCPU_FF_CLEAR(pDevIns->Internal.s.pVMR3, 0, VM_FF_INTERRUPT_PIC); … … 144 146 PDMDEV_ASSERT_DEVINS(pDevIns); 145 147 PVM pVM = pDevIns->Internal.s.pVMR3; 146 LogFlow(("pdmR3ApicHlp_SetInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT %d -> 1\n", 147 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pVM, idCpu, VM_FF_INTERRUPT_APIC))); 148 LogFlow(("pdmR3ApicHlp_SetInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT(%d) %d -> 1\n", 149 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, idCpu, VMCPU_FF_ISSET(pVM, idCpu, VM_FF_INTERRUPT_APIC))); 150 148 151 VMCPU_FF_SET(pVM, idCpu, VM_FF_INTERRUPT_APIC); 149 152 REMR3NotifyInterruptSet(pVM); 150 VMR3NotifyFF(pVM, true); 153 VMR3NotifyFF(pVM, true); /** @todo SMP: notify the right cpu. */ 151 154 } 152 155 … … 156 159 { 157 160 PDMDEV_ASSERT_DEVINS(pDevIns); 158 LogFlow(("pdmR3ApicHlp_ClearInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT %d -> 0\n", 159 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pDevIns->Internal.s.pVMR3, idCpu, VM_FF_INTERRUPT_APIC))); 161 LogFlow(("pdmR3ApicHlp_ClearInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT(%d) %d -> 0\n", 162 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, idCpu, VMCPU_FF_ISSET(pDevIns->Internal.s.pVMR3, idCpu, VM_FF_INTERRUPT_APIC))); 163 160 164 VMCPU_FF_CLEAR(pDevIns->Internal.s.pVMR3, idCpu, VM_FF_INTERRUPT_APIC); 161 165 REMR3NotifyInterruptClear(pDevIns->Internal.s.pVMR3); … … 192 196 { 193 197 PDMDEV_ASSERT_DEVINS(pDevIns); 198 LogFlow(("pdmR3ApicHlp_Lock: caller='%s'/%d: rc=%Rrc\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, rc)); 194 199 return pdmLockEx(pDevIns->Internal.s.pVMR3, rc); 195 200 } … … 200 205 { 201 206 PDMDEV_ASSERT_DEVINS(pDevIns); 207 LogFlow(("pdmR3ApicHlp_Unlock: caller='%s'/%d:\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance)); 202 208 pdmUnlock(pDevIns->Internal.s.pVMR3); 203 209 } … … 285 291 { 286 292 PDMDEV_ASSERT_DEVINS(pDevIns); 293 LogFlow(("pdmR3IoApicHlp_Lock: caller='%s'/%d: rc=%Rrc\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, rc)); 287 294 return pdmLockEx(pDevIns->Internal.s.pVMR3, rc); 288 295 } … … 293 300 { 294 301 PDMDEV_ASSERT_DEVINS(pDevIns); 302 LogFlow(("pdmR3IoApicHlp_Unlock: caller='%s'/%d:\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance)); 295 303 pdmUnlock(pDevIns->Internal.s.pVMR3); 296 304 } … … 383 391 { 384 392 PDMDEV_ASSERT_DEVINS(pDevIns); 393 LogFlow(("pdmR3PciHlp_Lock: caller='%s'/%d: rc=%Rrc\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, rc)); 385 394 return pdmLockEx(pDevIns->Internal.s.pVMR3, rc); 386 395 } … … 391 400 { 392 401 PDMDEV_ASSERT_DEVINS(pDevIns); 402 LogFlow(("pdmR3PciHlp_Unlock: caller='%s'/%d:\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance)); 393 403 pdmUnlock(pDevIns->Internal.s.pVMR3); 394 404 } -
trunk/src/VBox/VMM/PDMDevice.cpp
r12980 r12982 65 65 /** VM Handle. */ 66 66 PVM pVM; 67 } PDMDEVREGCBINT, *PPDMDEVREGCBINT; 67 } PDMDEVREGCBINT; 68 /** Pointer to a PDMDEVREGCBINT structure. */ 69 typedef PDMDEVREGCBINT *PPDMDEVREGCBINT; 70 /** Pointer to a const PDMDEVREGCBINT structure. */ 68 71 typedef const PDMDEVREGCBINT *PCPDMDEVREGCBINT; 69 72 … … 72 75 * Internal Functions * 73 76 *******************************************************************************/ 74 __BEGIN_DECLS75 77 static DECLCALLBACK(int) pdmR3DevReg_Register(PPDMDEVREGCB pCallbacks, PCPDMDEVREG pDevReg); 76 78 static DECLCALLBACK(void *) pdmR3DevReg_MMHeapAlloc(PPDMDEVREGCB pCallbacks, size_t cb); 77 78 static int pdmR3DevLoadModules(PVM pVM); 79 static int pdmR3DevLoad(PVM pVM, PPDMDEVREGCBINT pRegCB, const char *pszFilename, const char *pszName); 80 81 82 /* 83 * Allow physical read and writes from any thread 84 */ 85 #define PDM_PHYS_READWRITE_FROM_ANY_THREAD 86 87 __END_DECLS 79 static int pdmR3DevLoadModules(PVM pVM); 80 static int pdmR3DevLoad(PVM pVM, PPDMDEVREGCBINT pRegCB, const char *pszFilename, const char *pszName); 81 88 82 89 83 … … 594 588 595 589 596 597 590 /** 598 591 * Registers a device with the current VM instance.
Note:
See TracChangeset
for help on using the changeset viewer.