VirtualBox

Changeset 26185 in vbox for trunk/src/VBox/Devices/PC/ACPI


Ignore:
Timestamp:
Feb 3, 2010 1:06:17 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57204
Message:

Build fix

File:
1 edited

Legend:

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

    r26183 r26185  
    139139#endif
    140140
    141 /* Two only public functions */
    142 int acpiPrepareDsdt(PPDMDEVINS pDevIns,  void * *ppPtr, size_t *puDsdtLen)
    143 {
    144 #ifdef VBOX_WITH_DYNAMIC_DSDT
    145     return prepareDynamicDsdt(pDevIns, ppPtr, puDsdtLen);
    146 #else
     141/**
     142 * Loads an AML file if present in CFGM
     143 *
     144 * @returns VBox status code
     145 * @param   pDevIns        The device instance
     146 * @param   pcszCfgName    The configuration key holding the file path
     147 * @param   pcszSignature  The signature to check for
     148 * @param   ppbAmlCode     Where to store the pointer to the AML code on success.
     149 * @param   pcbAmlCode     Where to store the number of bytes of the AML code on success.
     150 */
     151static int acpiAmlLoadExternal(PPDMDEVINS pDevIns, const char *pcszCfgName, const char *pcszSignature, uint8_t **ppbAmlCode, size_t *pcbAmlCode)
     152{
    147153    uint8_t *pbAmlCode = NULL;
    148154    size_t cbAmlCode = 0;
    149155    char *pszAmlFilePath = NULL;
    150     int rc = CFGMR3QueryStringAlloc(pDevIns->pCfg, "AmlFilePath", &pszAmlFilePath);
     156    int rc = CFGMR3QueryStringAlloc(pDevIns->pCfg, pcszCfgName, &pszAmlFilePath);
     157
    151158    if (RT_SUCCESS(rc))
    152159    {
     
    265272        bool fCpuHotPlug = false;
    266273        uint8_t *pbAmlCode = NULL;
    267         rc = CFGMR3QueryBoolDef(pDevIns->pCfgHandle, "CpuHotPlug", &fCpuHotPlug, false);
     274        rc = CFGMR3QueryBoolDef(pDevIns->pCfg, "CpuHotPlug", &fCpuHotPlug, false);
    268275
    269276        if (RT_FAILURE(rc))
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