VirtualBox

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


Ignore:
Timestamp:
Feb 21, 2011 9:07:19 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70125
Message:

IOAPIC: assign ID matching MADT

File:
1 edited

Legend:

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

    r35353 r36024  
    28182818    bool         fR0Enabled;
    28192819    int          rc;
     2820    uint32_t     cCpus;
    28202821
    28212822    Assert(iInstance == 0);
     
    28242825     * Validate and read the configuration.
    28252826     */
    2826     if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0" "R0Enabled\0"))
     2827    if (!CFGMR3AreValuesValid(pCfg,
     2828                              "GCEnabled\0"
     2829                              "R0Enabled\0"
     2830                              "NumCPUs\0"))
    28272831        return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES;
    28282832
     
    28362840        return PDMDEV_SET_ERROR(pDevIns, rc,
    28372841                                N_("Configuration error: Failed to query boolean value \"R0Enabled\""));
     2842
     2843    rc = CFGMR3QueryU32Def(pCfg, "NumCPUs", &cCpus, 1);
     2844    if (RT_FAILURE(rc))
     2845        return PDMDEV_SET_ERROR(pDevIns, rc,
     2846                                N_("Configuration error: Failed to query integer value \"NumCPUs\""));
     2847
    28382848    Log(("IOAPIC: fR0Enabled=%RTbool fGCEnabled=%RTbool\n", fR0Enabled, fGCEnabled));
    28392849
     
    28462856    s->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns);
    28472857    ioapic_reset(s);
    2848     s->id = 0;
     2858    s->id = cCpus;
    28492859
    28502860    /*
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