Changeset 36024 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Feb 21, 2011 9:07:19 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70125
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r35353 r36024 2818 2818 bool fR0Enabled; 2819 2819 int rc; 2820 uint32_t cCpus; 2820 2821 2821 2822 Assert(iInstance == 0); … … 2824 2825 * Validate and read the configuration. 2825 2826 */ 2826 if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0" "R0Enabled\0")) 2827 if (!CFGMR3AreValuesValid(pCfg, 2828 "GCEnabled\0" 2829 "R0Enabled\0" 2830 "NumCPUs\0")) 2827 2831 return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES; 2828 2832 … … 2836 2840 return PDMDEV_SET_ERROR(pDevIns, rc, 2837 2841 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 2838 2848 Log(("IOAPIC: fR0Enabled=%RTbool fGCEnabled=%RTbool\n", fR0Enabled, fGCEnabled)); 2839 2849 … … 2846 2856 s->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns); 2847 2857 ioapic_reset(s); 2848 s->id = 0;2858 s->id = cCpus; 2849 2859 2850 2860 /*
Note:
See TracChangeset
for help on using the changeset viewer.