VirtualBox

Ignore:
Timestamp:
Oct 4, 2008 11:20:58 PM (16 years ago)
Author:
vboxsync
Message:

#1865: PDMQueue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp

    r12976 r12984  
    4040
    4141/*******************************************************************************
    42 *   Defined Constants And Macros                                               *
    43 *******************************************************************************/
    44 /** @def PDMDEV_ASSERT_DEVINS
    45  * Asserts the validity of the driver instance.
    46  */
    47 #ifdef VBOX_STRICT
    48 # 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 #else
    53 # define PDMDEV_ASSERT_DEVINS(pDevIns)   do { } while (0)
    54 #endif
    55 
    56 
    57 /*******************************************************************************
    5842*   Global Variables                                                           *
    5943*******************************************************************************/
     
    231215    {
    232216        /* queue for ring-3 execution. */
    233         PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueGC);
     217        PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueRC);
    234218        if (pTask)
    235219        {
    236220            pTask->enmOp = PDMDEVHLPTASKOP_PCI_SET_IRQ;
    237             pTask->pDevInsHC = MMHyperGC2HC(pVM, pDevIns);
     221            pTask->pDevInsR3 = PDMDEVINS_2_R3PTR(pDevIns);
    238222            pTask->u.SetIRQ.iIrq = iIrq;
    239223            pTask->u.SetIRQ.iLevel = iLevel;
    240224
    241             PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueGC, &pTask->Core, 0);
     225            PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueRC, &pTask->Core, 0);
    242226        }
    243227        else
     
    553537    {
    554538        /* queue for ring-3 execution. */
    555         PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueGC);
     539        PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueRC);
    556540        if (pTask)
    557541        {
    558542            pTask->enmOp = PDMDEVHLPTASKOP_ISA_SET_IRQ;
    559             pTask->pDevInsHC = 0; /* not required */
     543            pTask->pDevInsR3 = NIL_RTR3PTR; /* not required */
    560544            pTask->u.SetIRQ.iIrq = iIrq;
    561545            pTask->u.SetIRQ.iLevel = iLevel;
    562546
    563             PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueGC, &pTask->Core, 0);
     547            PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueRC, &pTask->Core, 0);
    564548        }
    565549        else
     
    587571    {
    588572        /* queue for ring-3 execution. */
    589         PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueGC);
     573        PPDMDEVHLPTASK pTask = (PPDMDEVHLPTASK)PDMQueueAlloc(pVM->pdm.s.pDevHlpQueueRC);
    590574        if (pTask)
    591575        {
    592576            pTask->enmOp = PDMDEVHLPTASKOP_IOAPIC_SET_IRQ;
    593             pTask->pDevInsHC = 0; /* not required */
     577            pTask->pDevInsR3 = NIL_RTR3PTR; /* not required */
    594578            pTask->u.SetIRQ.iIrq = iIrq;
    595579            pTask->u.SetIRQ.iLevel = iLevel;
    596580
    597             PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueGC, &pTask->Core, 0);
     581            PDMQueueInsertEx(pVM->pdm.s.pDevHlpQueueRC, &pTask->Core, 0);
    598582        }
    599583        else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette