Changeset 12984 in vbox for trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp
- Timestamp:
- Oct 4, 2008 11:20:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp
r12976 r12984 40 40 41 41 /******************************************************************************* 42 * Defined Constants And Macros *43 *******************************************************************************/44 /** @def PDMDEV_ASSERT_DEVINS45 * Asserts the validity of the driver instance.46 */47 #ifdef VBOX_STRICT48 # define PDMDEV_ASSERT_DEVINS(pDevIns) do { Assert(VALID_PTR(pDevIns)); \49 Assert(pDevIns->u32Version == PDM_DEVINS_VERSION); \50 Assert(pDevIns->pvInstanceDataRC == (void *)&pDevIns->achInstanceData[0]); \51 } while (0)52 #else53 # define PDMDEV_ASSERT_DEVINS(pDevIns) do { } while (0)54 #endif55 56 57 /*******************************************************************************58 42 * Global Variables * 59 43 *******************************************************************************/ … … 231 215 { 232 216 /* queue for ring-3 execution. */ 233 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueue GC);217 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueRC); 234 218 if (pTask) 235 219 { 236 220 pTask->enmOp = PDMDEVHLPTASKOP_PCI_SET_IRQ; 237 pTask->pDevIns HC = MMHyperGC2HC(pVM,pDevIns);221 pTask->pDevInsR3 = PDMDEVINS_2_R3PTR(pDevIns); 238 222 pTask->u.SetIRQ.iIrq = iIrq; 239 223 pTask->u.SetIRQ.iLevel = iLevel; 240 224 241 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueue GC, &pTask->Core, 0);225 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueRC, &pTask->Core, 0); 242 226 } 243 227 else … … 553 537 { 554 538 /* queue for ring-3 execution. */ 555 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueue GC);539 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueRC); 556 540 if (pTask) 557 541 { 558 542 pTask->enmOp = PDMDEVHLPTASKOP_ISA_SET_IRQ; 559 pTask->pDevIns HC = 0; /* not required */543 pTask->pDevInsR3 = NIL_RTR3PTR; /* not required */ 560 544 pTask->u.SetIRQ.iIrq = iIrq; 561 545 pTask->u.SetIRQ.iLevel = iLevel; 562 546 563 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueue GC, &pTask->Core, 0);547 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueRC, &pTask->Core, 0); 564 548 } 565 549 else … … 587 571 { 588 572 /* queue for ring-3 execution. */ 589 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueue GC);573 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueRC); 590 574 if (pTask) 591 575 { 592 576 pTask->enmOp = PDMDEVHLPTASKOP_IOAPIC_SET_IRQ; 593 pTask->pDevIns HC = 0; /* not required */577 pTask->pDevInsR3 = NIL_RTR3PTR; /* not required */ 594 578 pTask->u.SetIRQ.iIrq = iIrq; 595 579 pTask->u.SetIRQ.iLevel = iLevel; 596 580 597 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueue GC, &pTask->Core, 0);581 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueRC, &pTask->Core, 0); 598 582 } 599 583 else
Note:
See TracChangeset
for help on using the changeset viewer.