VirtualBox

Changeset 39091 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Oct 24, 2011 1:58:22 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74523
Message:

More parameter warning fixes; made PciIch9 check the saved state version.

Location:
trunk/src/VBox/Devices/PC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r37526 r39091  
    948948{
    949949    ACPIState *pThis = (ACPIState *)pvUser;
    950     Assert(TMTimerIsLockOwner(pThis->pPmTimerR3));
     950    Assert(TMTimerIsLockOwner(pTimer));
     951    NOREF(pDevIns);
    951952
    952953    DEVACPI_LOCK_R3(pThis);
     
    957958    DEVACPI_UNLOCK(pThis);
    958959
    959     acpiPmTimerReset(pThis, TMTimerGet(pThis->pPmTimerR3));
     960    acpiPmTimerReset(pThis, TMTimerGet(pTimer));
    960961}
    961962
     
    14091410PDMBOTHCBDECL(int) acpiPm1aEnRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    14101411{
     1412    NOREF(pDevIns); NOREF(Port);
    14111413    if (cb != 2)
    14121414        return VERR_IOM_IOPORT_UNUSED;
     
    16011603    }
    16021604
     1605    NOREF(pvUser); NOREF(Port);
    16031606    return rc;
    16041607}
     
    17141717{
    17151718    Log(("acpiResetWrite: %#x\n", u32));
     1719    NOREF(pvUser);
    17161720    if (cb != 1)
    17171721        return PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "cb=%d Port=%u u32=%#x\n", cb, Port, u32);
     
    17341738PDMBOTHCBDECL(int) acpiDhexWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    17351739{
     1740    NOREF(pvUser);
    17361741    switch (cb)
    17371742    {
     
    17551760PDMBOTHCBDECL(int) acpiDchrWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    17561761{
     1762    NOREF(pvUser);
    17571763    switch (cb)
    17581764    {
     
    27702776    ACPIState *pThis = PDMINS_2_DATA(pDevIns, ACPIState *);
    27712777    pThis->pPmTimerRC = TMTimerRCPtr(pThis->pPmTimerR3);
     2778    NOREF(offDelta);
    27722779}
    27732780
  • trunk/src/VBox/Devices/PC/DevHPET.cpp

    r37636 r39091  
    865865    HpetState      *pThis  = PDMINS_2_DATA(pDevIns, HpetState*);
    866866    uint32_t const  idxReg = (uint32_t)(GCPhysAddr - HPET_BASE);
     867    NOREF(pvUser);
    867868
    868869    LogFlow(("hpetMMIORead (%d): %llx (%x)\n", cb, (uint64_t)GCPhysAddr, idxReg));
     
    955956    LogFlow(("hpetMMIOWrite: cb=%u reg=%03x (%RGp) val=%llx\n",
    956957             cb, idxReg, GCPhysAddr, cb == 4 ? *(uint32_t *)pv : cb == 8 ? *(uint64_t *)pv : 0xdeadbeef));
     958    NOREF(pvUser);
    957959
    958960    int rc;
     
    11221124{
    11231125    HpetState *pThis = PDMINS_2_DATA(pDevIns, HpetState *);
     1126    NOREF(pszArgs);
    11241127
    11251128    pHlp->pfnPrintf(pHlp,
     
    11541157{
    11551158    HpetState *pThis = PDMINS_2_DATA(pDevIns, HpetState *);
     1159    NOREF(uPass);
    11561160
    11571161    SSMR3PutU8(pSSM, HPET_CAP_GET_TIMERS(pThis->u32Capabilities));
     
    12781282    HpetState *pThis = PDMINS_2_DATA(pDevIns, HpetState *);
    12791283    LogFlow(("hpetRelocate:\n"));
     1284    NOREF(offDelta);
    12801285
    12811286    pThis->pDevInsRC    = PDMDEVINS_2_RCPTR(pDevIns);
  • trunk/src/VBox/Devices/PC/DevPIC.cpp

    r38921 r39091  
    730730        return VINF_SUCCESS;
    731731    }
     732    NOREF(Port);
    732733    return VERR_IOM_IOPORT_UNUSED;
    733734}
     
    753754        PIC_UNLOCK(PDMINS_2_DATA(pDevIns, PDEVPIC));
    754755    }
     756    NOREF(Port);
    755757    return VINF_SUCCESS;
    756758}
     
    769771{
    770772    PDEVPIC pThis = PDMINS_2_DATA(pDevIns, PDEVPIC);
     773    NOREF(pszArgs);
    771774
    772775    /*
    773776     * Show info.
    774777     */
    775     for (int i=0;i<2;i++)
    776     {
    777         PicState    *pPic;
    778 
    779         pPic = &pThis->aPics[i];
     778    for (int i = 0; i < 2; i++)
     779    {
     780        PicState   *pPic = &pThis->aPics[i];
     781
    780782        pHlp->pfnPrintf(pHlp, "PIC%d:\n", i);
    781783        pHlp->pfnPrintf(pHlp, " IMR :%02x ISR   :%02x IRR   :%02x LIRR:%02x\n",
     
    984986
    985987    /*
    986      * Since the PIC helper interface provides access to the PDM lock, 
    987      * we need no device level critical section. 
     988     * Since the PIC helper interface provides access to the PDM lock,
     989     * we need no device level critical section.
    988990     */
    989991    rc = PDMDevHlpSetDeviceCritSect(pDevIns, PDMDevHlpCritSectGetNop(pDevIns));
Note: See TracChangeset for help on using the changeset viewer.

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