VirtualBox

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


Ignore:
Timestamp:
Oct 20, 2021 9:04:23 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147667
Message:

Devices/PC: Change ACPI drivers to access the CFGM API through the driver helper callback table only, bugref:10074

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

Legend:

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

    r82968 r91864  
    975975static DECLCALLBACK(int) drvACPIConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    976976{
    977     RT_NOREF(fFlags);
     977    RT_NOREF(pCfg, fFlags);
    978978    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    979979    PDRVACPI pThis = PDMINS_2_DATA(pDrvIns, PDRVACPI);
     
    996996     * Validate the config.
    997997     */
    998     if (!CFGMR3AreValuesValid(pCfg, "\0"))
    999         return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
     998    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "", "");
    1000999
    10011000    /*
  • trunk/src/VBox/Devices/PC/DrvAcpiCpu.cpp

    r82968 r91864  
    4848static DECLCALLBACK(int) drvACPICpuConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    4949{
    50     RT_NOREF(fFlags);
     50    RT_NOREF(pCfg, fFlags);
    5151    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    5252
     
    6060     * Validate the config.
    6161     */
    62     if (!CFGMR3AreValuesValid(pCfg, "\0"))
    63         return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
     62    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "", "");
    6463
    6564    /*
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