VirtualBox

Changeset 81994 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 19, 2019 12:58:23 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134793
Message:

DevACPI: Converted critsects to devhlp and new style. bugref:9218

File:
1 edited

Legend:

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

    r81993 r81994  
    4949#ifdef IN_RING3
    5050/** Locks the device state, ring-3 only.  */
    51 # define DEVACPI_LOCK_R3(a_pThis) \
     51# define DEVACPI_LOCK_R3(a_pDevIns, a_pThis) \
    5252    do { \
    53         int rcLock = PDMCritSectEnter(&(a_pThis)->CritSect, VERR_IGNORED); \
     53        int rcLock = PDMDevHlpCritSectEnter((a_pDevIns), &(a_pThis)->CritSect, VERR_IGNORED); \
    5454        AssertRC(rcLock); \
    5555    } while (0)
    5656#endif
    5757/** Unlocks the device state (all contexts). */
    58 #define DEVACPI_UNLOCK(a_pThis) \
    59     do { PDMCritSectLeave(&(a_pThis)->CritSect); } while (0)
     58#define DEVACPI_UNLOCK(a_pDevIns, a_pThis) \
     59    do { PDMDevHlpCritSectLeave((a_pDevIns), &(a_pThis)->CritSect); } while (0)
    6060
    6161
     
    418418    /** ACPI port interface. */
    419419    PDMIACPIPORT        IACPIPort;
     420    /** Pointer to the device instance so we can get our bearings from
     421     *  interface functions. */
     422    PPDMDEVINSR3        pDevIns;
     423
    420424    /** Pointer to the device instance. */
    421425    PPDMDEVINSR3        pDevInsR3;
     
    822826static void acpiUpdatePm1a(PPDMDEVINS pDevIns, ACPIState *pThis, uint32_t sts, uint32_t en)
    823827{
    824     Assert(PDMCritSectIsOwner(&pThis->CritSect));
     828    Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect));
    825829
    826830    const bool old_level = acpiSCILevel(pDevIns, pThis);
     
    850854static void apicR3UpdateGpe0(PPDMDEVINS pDevIns, ACPIState *pThis, uint32_t sts, uint32_t en)
    851855{
    852     Assert(PDMCritSectIsOwner(&pThis->CritSect));
     856    Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect));
    853857
    854858    const bool old_level = acpiSCILevel(pDevIns, pThis);
     
    917921{
    918922    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IACPIPort);
    919     DEVACPI_LOCK_R3(pThis);
     923    PPDMDEVINS pDevIns = pThis->pDevIns;
     924    DEVACPI_LOCK_R3(pDevIns, pThis);
    920925
    921926    Log(("acpiR3Port_PowerButtonPress: handled=%d status=%x\n", pThis->fPowerButtonHandled, pThis->pm1a_sts));
    922927    pThis->fPowerButtonHandled = false;
    923     acpiUpdatePm1a(pThis->pDevInsR3, pThis, pThis->pm1a_sts | PWRBTN_STS, pThis->pm1a_en);
    924 
    925     DEVACPI_UNLOCK(pThis);
     928    acpiUpdatePm1a(pDevIns, pThis, pThis->pm1a_sts | PWRBTN_STS, pThis->pm1a_en);
     929
     930    DEVACPI_UNLOCK(pDevIns, pThis);
    926931    return VINF_SUCCESS;
    927932}
     
    933938{
    934939    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IACPIPort);
    935     DEVACPI_LOCK_R3(pThis);
     940    PPDMDEVINS pDevIns = pThis->pDevIns;
     941    DEVACPI_LOCK_R3(pDevIns, pThis);
    936942
    937943    *pfHandled = pThis->fPowerButtonHandled;
    938944
    939     DEVACPI_UNLOCK(pThis);
     945    DEVACPI_UNLOCK(pDevIns, pThis);
    940946    return VINF_SUCCESS;
    941947}
     
    948954{
    949955    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IACPIPort);
    950     DEVACPI_LOCK_R3(pThis);
     956    PPDMDEVINS pDevIns = pThis->pDevIns;
     957    DEVACPI_LOCK_R3(pDevIns, pThis);
    951958
    952959    *pfEntered = (pThis->pm1a_ctl & SCI_EN) != 0;
    953960
    954     DEVACPI_UNLOCK(pThis);
     961    DEVACPI_UNLOCK(pDevIns, pThis);
    955962    return VINF_SUCCESS;
    956963}
     
    962969{
    963970    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IACPIPort);
    964     DEVACPI_LOCK_R3(pThis);
     971    PPDMDEVINS pDevIns = pThis->pDevIns;
     972    DEVACPI_LOCK_R3(pDevIns, pThis);
    965973
    966974    *pfLocked = VMCPUSET_IS_PRESENT(&pThis->CpuSetLocked, uCpu);
    967975
    968     DEVACPI_UNLOCK(pThis);
     976    DEVACPI_UNLOCK(pDevIns, pThis);
    969977    return VINF_SUCCESS;
    970978}
     
    979987{
    980988    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IACPIPort);
    981     DEVACPI_LOCK_R3(pThis);
    982 
    983     acpiUpdatePm1a(pThis->pDevInsR3, pThis, pThis->pm1a_sts | SLPBTN_STS, pThis->pm1a_en);
    984 
    985     DEVACPI_UNLOCK(pThis);
     989    PPDMDEVINS pDevIns = pThis->pDevIns;
     990    DEVACPI_LOCK_R3(pDevIns, pThis);
     991
     992    acpiUpdatePm1a(pDevIns, pThis, pThis->pm1a_sts | SLPBTN_STS, pThis->pm1a_en);
     993
     994    DEVACPI_UNLOCK(pDevIns, pThis);
    986995    return VINF_SUCCESS;
    987996}
     
    9971006{
    9981007    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IACPIPort);
    999     DEVACPI_LOCK_R3(pThis);
    1000 
    1001     apicR3UpdateGpe0(pThis->pDevInsR3, pThis, pThis->gpe0_sts | 0x4, pThis->gpe0_en);
    1002 
    1003     DEVACPI_UNLOCK(pThis);
     1008    PPDMDEVINS pDevIns = pThis->pDevIns;
     1009    DEVACPI_LOCK_R3(pDevIns, pThis);
     1010
     1011    apicR3UpdateGpe0(pDevIns, pThis, pThis->gpe0_sts | 0x4, pThis->gpe0_en);
     1012
     1013    DEVACPI_UNLOCK(pDevIns, pThis);
    10041014    return VINF_SUCCESS;
    10051015}
     
    10151025{
    10161026    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IACPIPort);
    1017     DEVACPI_LOCK_R3(pThis);
    1018 
    1019     apicR3UpdateGpe0(pThis->pDevInsR3, pThis, pThis->gpe0_sts | 0x1, pThis->gpe0_en);
    1020 
    1021     DEVACPI_UNLOCK(pThis);
     1027    PPDMDEVINS pDevIns = pThis->pDevIns;
     1028    DEVACPI_LOCK_R3(pDevIns, pThis);
     1029
     1030    apicR3UpdateGpe0(pDevIns, pThis, pThis->gpe0_sts | 0x1, pThis->gpe0_en);
     1031
     1032    DEVACPI_UNLOCK(pDevIns, pThis);
    10221033    return VINF_SUCCESS;
    10231034}
     
    10761087    RT_NOREF(pvUser);
    10771088
    1078     DEVACPI_LOCK_R3(pThis);
     1089    DEVACPI_LOCK_R3(pDevIns, pThis);
    10791090    Log(("acpi: pm timer sts %#x (%d), en %#x (%d)\n",
    10801091         pThis->pm1a_sts, (pThis->pm1a_sts & TMR_STS) != 0,
     
    10821093    uint64_t u64Now = TMTimerGet(pTimer);
    10831094    acpiPmTimerUpdate(pDevIns, pThis, u64Now);
    1084     DEVACPI_UNLOCK(pThis);
     1095    DEVACPI_UNLOCK(pDevIns, pThis);
    10851096
    10861097    acpiR3PmTimerReset(pThis, u64Now);
     
    12061217
    12071218    ACPIState *pThis = (ACPIState *)pvUser;
    1208     DEVACPI_LOCK_R3(pThis);
     1219    DEVACPI_LOCK_R3(pDevIns, pThis);
    12091220
    12101221    u32 >>= pThis->u8IndexShift;
     
    12181229    pThis->uBatteryIndex = u32;
    12191230
    1220     DEVACPI_UNLOCK(pThis);
     1231    DEVACPI_UNLOCK(pDevIns, pThis);
    12211232    return VINF_SUCCESS;
    12221233}
     
    12311242
    12321243    ACPIState *pThis = (ACPIState *)pvUser;
    1233     DEVACPI_LOCK_R3(pThis);
     1244    DEVACPI_LOCK_R3(pDevIns, pThis);
    12341245
    12351246    int rc = VINF_SUCCESS;
     
    12731284    }
    12741285
    1275     DEVACPI_UNLOCK(pThis);
     1286    DEVACPI_UNLOCK(pDevIns, pThis);
    12761287    return rc;
    12771288}
     
    12871298
    12881299    ACPIState *pThis = (ACPIState *)pvUser;
    1289     DEVACPI_LOCK_R3(pThis);
     1300    DEVACPI_LOCK_R3(pDevIns, pThis);
    12901301
    12911302    if (u32 == SYSTEM_INFO_INDEX_VALID || u32 == SYSTEM_INFO_INDEX_INVALID)
     
    13051316    }
    13061317
    1307     DEVACPI_UNLOCK(pThis);
     1318    DEVACPI_UNLOCK(pDevIns, pThis);
    13081319    return VINF_SUCCESS;
    13091320}
     
    13181329
    13191330    ACPIState *pThis = (ACPIState *)pvUser;
    1320     DEVACPI_LOCK_R3(pThis);
     1331    DEVACPI_LOCK_R3(pDevIns, pThis);
    13211332
    13221333    int rc = VINF_SUCCESS;
     
    15001511    }
    15011512
    1502     DEVACPI_UNLOCK(pThis);
     1513    DEVACPI_UNLOCK(pDevIns, pThis);
    15031514    Log(("acpiR3SysInfoDataRead: idx=%d val=%#x (%u) rc=%Rrc\n", uSystemInfoIndex, *pu32, *pu32, rc));
    15041515    return rc;
     
    15141525        return PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "cb=%d Port=%u u32=%#x idx=%u\n", cb, Port, u32, pThis->uSystemInfoIndex);
    15151526
    1516     DEVACPI_LOCK_R3(pThis);
     1527    DEVACPI_LOCK_R3(pDevIns, pThis);
    15171528    Log(("addr=%#x cb=%d u32=%#x si=%#x\n", Port, cb, u32, pThis->uSystemInfoIndex));
    15181529
     
    15461557    }
    15471558
    1548     DEVACPI_UNLOCK(pThis);
     1559    DEVACPI_UNLOCK(pDevIns, pThis);
    15491560    return rc;
    15501561}
     
    15601571
    15611572    ACPIState *pThis = (ACPIState *)pvUser;
    1562     DEVACPI_LOCK_R3(pThis);
     1573    DEVACPI_LOCK_R3(pDevIns, pThis);
    15631574
    15641575    *pu32 = pThis->pm1a_en;
    15651576
    1566     DEVACPI_UNLOCK(pThis);
     1577    DEVACPI_UNLOCK(pDevIns, pThis);
    15671578    Log(("acpiR3Pm1aEnRead -> %#x\n", *pu32));
    15681579    return VINF_SUCCESS;
     
    15781589
    15791590    ACPIState *pThis = (ACPIState *)pvUser;
    1580     DEVACPI_LOCK_R3(pThis);
     1591    DEVACPI_LOCK_R3(pDevIns, pThis);
    15811592
    15821593    Log(("acpiR3PM1aEnWrite: %#x (%#x)\n", u32, u32 & ~(RSR_EN | IGN_EN) & 0xffff));
     
    15851596    acpiUpdatePm1a(pDevIns, pThis, pThis->pm1a_sts, u32);
    15861597
    1587     DEVACPI_UNLOCK(pThis);
     1598    DEVACPI_UNLOCK(pDevIns, pThis);
    15881599    return VINF_SUCCESS;
    15891600}
     
    16011612
    16021613    ACPIState *pThis = (ACPIState *)pvUser;
    1603     DEVACPI_LOCK_R3(pThis);
     1614    DEVACPI_LOCK_R3(pDevIns, pThis);
    16041615
    16051616    *pu32 = pThis->pm1a_sts;
    16061617
    1607     DEVACPI_UNLOCK(pThis);
     1618    DEVACPI_UNLOCK(pDevIns, pThis);
    16081619    Log(("acpiR3Pm1aStsRead: %#x\n", *pu32));
    16091620    return VINF_SUCCESS;
     
    16191630
    16201631    ACPIState *pThis = (ACPIState *)pvUser;
    1621     DEVACPI_LOCK_R3(pThis);
     1632    DEVACPI_LOCK_R3(pDevIns, pThis);
    16221633
    16231634    Log(("acpiR3PM1aStsWrite: %#x (%#x)\n", u32, u32 & ~(RSR_STS | IGN_STS) & 0xffff));
     
    16281639    acpiUpdatePm1a(pDevIns, pThis, u32, pThis->pm1a_en);
    16291640
    1630     DEVACPI_UNLOCK(pThis);
     1641    DEVACPI_UNLOCK(pDevIns, pThis);
    16311642    return VINF_SUCCESS;
    16321643}
     
    16441655
    16451656    ACPIState *pThis = (ACPIState *)pvUser;
    1646     DEVACPI_LOCK_R3(pThis);
     1657    DEVACPI_LOCK_R3(pDevIns, pThis);
    16471658
    16481659    *pu32 = pThis->pm1a_ctl;
    16491660
    1650     DEVACPI_UNLOCK(pThis);
     1661    DEVACPI_UNLOCK(pDevIns, pThis);
    16511662    Log(("acpiR3Pm1aCtlRead: %#x\n", *pu32));
    16521663    return VINF_SUCCESS;
     
    16621673
    16631674    ACPIState *pThis = (ACPIState *)pvUser;
    1664     DEVACPI_LOCK_R3(pThis);
     1675    DEVACPI_LOCK_R3(pDevIns, pThis);
    16651676
    16661677    Log(("acpiR3PM1aCtlWrite: %#x (%#x)\n", u32, u32 & ~(RSR_CNT | IGN_CNT) & 0xffff));
     
    17091720    }
    17101721
    1711     DEVACPI_UNLOCK(pThis);
     1722    DEVACPI_UNLOCK(pDevIns, pThis);
    17121723    Log(("acpiR3PM1aCtlWrite: rc=%Rrc\n", rc));
    17131724    return rc;
     
    17381749        return rc;
    17391750
    1740     rc = PDMCritSectEnter(&pThis->CritSect, VINF_IOM_R3_IOPORT_READ);
     1751    rc = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VINF_IOM_R3_IOPORT_READ);
    17411752    if (rc != VINF_SUCCESS)
    17421753    {
     
    17491760    *pu32 = pThis->uPmTimerVal;
    17501761
    1751     DEVACPI_UNLOCK(pThis);
     1762    DEVACPI_UNLOCK(pDevIns, pThis);
    17521763    TMTimerUnlock(pThis->CTX_SUFF(pPmTimer));
    17531764
     
    17601771    if (*pu32 - uOld >= 0x10000000)
    17611772    {
    1762 #if defined(IN_RING0)
     1773# if defined(IN_RING0)
    17631774        pThis->uPmTimeA = uOld;
    17641775        pThis->uPmTimeB = *pu32;
    17651776        return VERR_TM_TIMER_BAD_CLOCK;
    1766 #elif defined(IN_RING3)
     1777# elif defined(IN_RING3)
    17671778        AssertReleaseMsgFailed(("acpiPMTmrRead: old=%08RX32, current=%08RX32\n", uOld, *pu32));
    1768 #endif
     1779# endif
    17691780    }
    17701781#endif
     
    17961807
    17971808    ACPIState *pThis = (ACPIState *)pvUser;
    1798     DEVACPI_LOCK_R3(pThis);
     1809    DEVACPI_LOCK_R3(pDevIns, pThis);
    17991810
    18001811    *pu32 = pThis->gpe0_sts & 0xff;
    18011812
    1802     DEVACPI_UNLOCK(pThis);
     1813    DEVACPI_UNLOCK(pDevIns, pThis);
    18031814    Log(("acpiR3Gpe0StsRead: %#x\n", *pu32));
    18041815    return VINF_SUCCESS;
     
    18141825
    18151826    ACPIState *pThis = (ACPIState *)pvUser;
    1816     DEVACPI_LOCK_R3(pThis);
     1827    DEVACPI_LOCK_R3(pDevIns, pThis);
    18171828
    18181829    Log(("acpiR3Gpe0StsWrite: %#x (%#x)\n", u32, pThis->gpe0_sts & ~u32));
     
    18201831    apicR3UpdateGpe0(pDevIns, pThis, u32, pThis->gpe0_en);
    18211832
    1822     DEVACPI_UNLOCK(pThis);
     1833    DEVACPI_UNLOCK(pDevIns, pThis);
    18231834    return VINF_SUCCESS;
    18241835}
     
    18361847
    18371848    ACPIState *pThis = (ACPIState *)pvUser;
    1838     DEVACPI_LOCK_R3(pThis);
     1849    DEVACPI_LOCK_R3(pDevIns, pThis);
    18391850
    18401851    *pu32 = pThis->gpe0_en & 0xff;
    18411852
    1842     DEVACPI_UNLOCK(pThis);
     1853    DEVACPI_UNLOCK(pDevIns, pThis);
    18431854    Log(("acpiR3Gpe0EnRead: %#x\n", *pu32));
    18441855    return VINF_SUCCESS;
     
    18541865
    18551866    ACPIState *pThis = (ACPIState *)pvUser;
    1856     DEVACPI_LOCK_R3(pThis);
     1867    DEVACPI_LOCK_R3(pDevIns, pThis);
    18571868
    18581869    Log(("acpiR3Gpe0EnWrite: %#x\n", u32));
    18591870    apicR3UpdateGpe0(pDevIns, pThis, pThis->gpe0_sts, u32);
    18601871
    1861     DEVACPI_UNLOCK(pThis);
     1872    DEVACPI_UNLOCK(pDevIns, pThis);
    18621873    return VINF_SUCCESS;
    18631874}
     
    18731884
    18741885    ACPIState *pThis = (ACPIState *)pvUser;
    1875     DEVACPI_LOCK_R3(pThis);
     1886    DEVACPI_LOCK_R3(pDevIns, pThis);
    18761887
    18771888    if (u32 == ACPI_ENABLE)
     
    18821893        Log(("acpiR3SmiWrite: %#x <- unknown value\n", u32));
    18831894
    1884     DEVACPI_UNLOCK(pThis);
     1895    DEVACPI_UNLOCK(pDevIns, pThis);
    18851896    return VINF_SUCCESS;
    18861897}
     
    21162127        return PDMDevHlpDBGFStop(pDevIns, RT_SRC_POS, "cb=%d Port=%u u32=%#x\n", cb, Port, u32);
    21172128
    2118     DEVACPI_LOCK_R3(pThis);
     2129    DEVACPI_LOCK_R3(pDevIns, pThis);
    21192130    switch (off)
    21202131    {
     
    21292140        case SMBHSTCNT_OFF:
    21302141        {
    2131             Assert(PDMCritSectIsOwner(&pThis->CritSect));
     2142            Assert(PDMDevHlpCritSectIsOwner(pDevIns, &pThis->CritSect));
    21322143
    21332144            const bool old_level = acpiSCILevel(pDevIns, pThis);
     
    21872198    }
    21882199
    2189     DEVACPI_UNLOCK(pThis);
     2200    DEVACPI_UNLOCK(pDevIns, pThis);
    21902201    return VINF_SUCCESS;
    21912202}
     
    22062217        return VERR_IOM_IOPORT_UNUSED;
    22072218
    2208     DEVACPI_LOCK_R3(pThis);
     2219    DEVACPI_LOCK_R3(pDevIns, pThis);
    22092220    switch (off)
    22102221    {
     
    22532264    }
    22542265
    2255     DEVACPI_UNLOCK(pThis);
     2266    DEVACPI_UNLOCK(pDevIns, pThis);
    22562267    LogFunc(("Port=%#x u32=%#x cb=%u rc=%Rrc\n", Port, *pu32, cb, rc));
    22572268    return rc;
     
    25632574            return rc;
    25642575        TMTimerLock(pThis->pPmTimerR3, VERR_IGNORED);
    2565         DEVACPI_LOCK_R3(pThis);
     2576        DEVACPI_LOCK_R3(pDevIns, pThis);
    25662577        uint64_t u64Now = TMTimerGet(pThis->pPmTimerR3);
    25672578        /* The interrupt may be incorrectly re-generated if the state is restored from versions < 7. */
    25682579        acpiPmTimerUpdate(pDevIns, pThis, u64Now);
    25692580        acpiR3PmTimerReset(pThis, u64Now);
    2570         DEVACPI_UNLOCK(pThis);
     2581        DEVACPI_UNLOCK(pDevIns, pThis);
    25712582        TMTimerUnlock(pThis->pPmTimerR3);
    25722583    }
     
    33723383
    33733384    Log2(("acpi: PCI config write: 0x%x -> 0x%x (%d)\n", u32Value, uAddress, cb));
    3374     DEVACPI_LOCK_R3(pThis);
     3385    DEVACPI_LOCK_R3(pDevIns, pThis);
    33753386
    33763387    if (uAddress == VBOX_PCI_INTERRUPT_LINE)
     
    34143425    }
    34153426
    3416     DEVACPI_UNLOCK(pThis);
     3427    DEVACPI_UNLOCK(pDevIns, pThis);
    34173428    return rcStrict;
    34183429}
     
    34403451    /* Check if it was already attached */
    34413452    int rc = VINF_SUCCESS;
    3442     DEVACPI_LOCK_R3(pThis);
     3453    DEVACPI_LOCK_R3(pDevIns, pThis);
    34433454    if (!VMCPUSET_IS_PRESENT(&pThis->CpuSetAttached, iLUN))
    34443455    {
     
    34623473        }
    34633474    }
    3464     DEVACPI_UNLOCK(pThis);
     3475    DEVACPI_UNLOCK(pDevIns, pThis);
    34653476    return rc;
    34663477}
     
    34833494
    34843495    /* Check if it was already detached */
    3485     DEVACPI_LOCK_R3(pThis);
     3496    DEVACPI_LOCK_R3(pDevIns, pThis);
    34863497    if (VMCPUSET_IS_PRESENT(&pThis->CpuSetAttached, iLUN))
    34873498    {
     
    34993510            AssertMsgFailed(("CPU is still locked by the guest\n"));
    35003511    }
    3501     DEVACPI_UNLOCK(pThis);
     3512    DEVACPI_UNLOCK(pDevIns, pThis);
    35023513}
    35033514
     
    36073618    /** @todo move more of the code up! */
    36083619
     3620    pThis->pDevIns   = pDevIns;
    36093621    pThis->pDevInsR3 = pDevIns;
    36103622    pThis->pDevInsR0 = PDMDEVINS_2_R0PTR(pDevIns);
     
    41004112}
    41014113
    4102 #endif /* IN_RING3 */
     4114#else  /* !IN_RING3 */
     4115
     4116/**
     4117 * @callback_method_impl{PDMDEVREGR0,pfnConstruct}
     4118 */
     4119static DECLCALLBACK(int) acpiRZConstruct(PPDMDEVINS pDevIns)
     4120{
     4121    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
     4122    //PACPISTATE pThis = PDMDEVINS_2_DATA(pDevIns, PACPISTATE);
     4123
     4124    int rc = PDMDevHlpSetDeviceCritSect(pDevIns, PDMDevHlpCritSectGetNop(pDevIns));
     4125    AssertRCReturn(rc, rc);
     4126
     4127    return VINF_SUCCESS;
     4128}
     4129
     4130#endif /* !IN_RING3 */
    41034131
    41044132/**
     
    41474175#elif defined(IN_RING0)
    41484176    /* .pfnEarlyConstruct = */      NULL,
    4149     /* .pfnConstruct = */           NULL,
     4177    /* .pfnConstruct = */           acpiRZConstruct,
    41504178    /* .pfnDestruct = */            NULL,
    41514179    /* .pfnFinalDestruct = */       NULL,
     
    41604188    /* .pfnReserved7 = */           NULL,
    41614189#elif defined(IN_RC)
    4162     /* .pfnConstruct = */           NULL,
     4190    /* .pfnConstruct = */           acpiRZConstruct,
    41634191    /* .pfnReserved0 = */           NULL,
    41644192    /* .pfnReserved1 = */           NULL,
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