VirtualBox

Changeset 20117 in vbox


Ignore:
Timestamp:
May 28, 2009 1:09:22 PM (16 years ago)
Author:
vboxsync
Message:

DevACPI.cpp: Use the scope to avoid bugs like r47866 fixed.

File:
1 edited

Legend:

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

    r20112 r20117  
    17901790static DECLCALLBACK(int) acpiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle)
    17911791{
    1792     int rc;
    1793     ACPIState *s = PDMINS_2_DATA(pDevIns, ACPIState *);
    1794     uint32_t rsdp_addr;
     1792    ACPIState *s   = PDMINS_2_DATA(pDevIns, ACPIState *);
    17951793    PCIDevice *dev = &s->dev;
    1796     bool fGCEnabled;
    1797     bool fR0Enabled;
    17981794
    17991795    /* Validate and read the configuration. */
     
    18171813
    18181814    /* query whether we are supposed to present an IOAPIC */
    1819     rc = CFGMR3QueryU8Def(pCfgHandle, "IOAPIC", &s->u8UseIOApic, 1);
     1815    int rc = CFGMR3QueryU8Def(pCfgHandle, "IOAPIC", &s->u8UseIOApic, 1);
    18201816    if (RT_FAILURE(rc))
    18211817        return PDMDEV_SET_ERROR(pDevIns, rc,
     
    18601856        s->fShowCpu = true;
    18611857
     1858    bool fGCEnabled;
    18621859    rc = CFGMR3QueryBool(pCfgHandle, "GCEnabled", &fGCEnabled);
    18631860    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
     
    18671864                                N_("Configuration error: Failed to read \"GCEnabled\""));
    18681865
     1866    bool fR0Enabled;
    18691867    rc = CFGMR3QueryBool(pCfgHandle, "R0Enabled", &fR0Enabled);
    18701868    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
     
    18751873
    18761874    /* */
    1877     rsdp_addr = find_rsdp_space();
     1875    uint32_t rsdp_addr = find_rsdp_space();
    18781876    if (!rsdp_addr)
    18791877        return PDMDEV_SET_ERROR(pDevIns, VERR_NO_MEMORY,
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