Changeset 12984 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Oct 4, 2008 11:20:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/PDMR0Device.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->pvInstanceDataR0 == (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 HC);217 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueR0); 234 218 if (pTask) 235 219 { 236 220 pTask->enmOp = PDMDEVHLPTASKOP_PCI_SET_IRQ; 237 pTask->pDevIns HC = 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 HC, &pTask->Core, 0);225 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueR0, &pTask->Core, 0); 242 226 } 243 227 else … … 561 545 { 562 546 /* queue for ring-3 execution. */ 563 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueue HC);547 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueR0); 564 548 if (pTask) 565 549 { 566 550 pTask->enmOp = PDMDEVHLPTASKOP_ISA_SET_IRQ; 567 pTask->pDevIns HC = 0; /* not required */551 pTask->pDevInsR3 = NIL_RTR3PTR; /* not required */ 568 552 pTask->u.SetIRQ.iIrq = iIrq; 569 553 pTask->u.SetIRQ.iLevel = iLevel; 570 554 571 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueue HC, &pTask->Core, 0);555 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueR0, &pTask->Core, 0); 572 556 } 573 557 else … … 595 579 { 596 580 /* queue for ring-3 execution. */ 597 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueue HC);581 PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueR0); 598 582 if (pTask) 599 583 { 600 584 pTask->enmOp = PDMDEVHLPTASKOP_IOAPIC_SET_IRQ; 601 pTask->pDevIns HC = 0; /* not required */585 pTask->pDevInsR3 = NIL_RTR3PTR; /* not required */ 602 586 pTask->u.SetIRQ.iIrq = iIrq; 603 587 pTask->u.SetIRQ.iLevel = iLevel; 604 588 605 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueue HC, &pTask->Core, 0);589 PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueR0, &pTask->Core, 0); 606 590 } 607 591 else
Note:
See TracChangeset
for help on using the changeset viewer.