Changeset 16711 in vbox
- Timestamp:
- Feb 12, 2009 3:46:54 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r16247 r16711 134 134 SYSTEM_INFO_INDEX_SMC_STATUS = 3, 135 135 SYSTEM_INFO_INDEX_FDC_STATUS = 4, 136 SYSTEM_INFO_INDEX_LAST = 5, 136 SYSTEM_INFO_INDEX_CPU0_STATUS = 5, 137 SYSTEM_INFO_INDEX_CPU1_STATUS = 6, 138 SYSTEM_INFO_INDEX_CPU2_STATUS = 7, 139 SYSTEM_INFO_INDEX_CPU3_STATUS = 8, 140 SYSTEM_INFO_INDEX_LAST = 9, 137 141 SYSTEM_INFO_INDEX_INVALID = 0x80, 138 142 SYSTEM_INFO_INDEX_VALID = 0x200 … … 194 198 /** the guest handled the last power button event */ 195 199 bool fPowerButtonHandled; 200 /** If ACPI CPU device should be shown */ 201 bool fShowCpu; 196 202 /** Aligning IBase. */ 197 bool afAlignment[ 3];203 bool afAlignment[2]; 198 204 199 205 /** ACPI port base interface. */ … … 809 815 madt.IOApic.u8Type = 1; 810 816 madt.IOApic.u8Length = sizeof(ACPITBLIOAPIC); 811 madt.IOApic.u8IOApicId = 0;817 madt.IOApic.u8IOApicId = 1; 812 818 madt.IOApic.u8Reserved = 0; 813 819 madt.IOApic.u32Address = RT_H2LE_U32(0xfec00000); … … 1329 1335 : 0; 1330 1336 break; 1331 1337 case SYSTEM_INFO_INDEX_CPU0_STATUS: 1338 *pu32 = s->fShowCpu ? ( STA_DEVICE_PRESENT_MASK 1339 | STA_DEVICE_ENABLED_MASK 1340 | STA_DEVICE_SHOW_IN_UI_MASK 1341 | STA_DEVICE_FUNCTIONING_PROPERLY_MASK) 1342 : 0; 1343 break; 1344 1345 case SYSTEM_INFO_INDEX_CPU1_STATUS: 1346 case SYSTEM_INFO_INDEX_CPU2_STATUS: 1347 case SYSTEM_INFO_INDEX_CPU3_STATUS: 1348 *pu32 = 0; 1349 break; 1332 1350 1333 1351 /* Solaris 9 tries to read from this index */ … … 1814 1832 return PDMDEV_SET_ERROR(pDevIns, rc, 1815 1833 N_("Configuration error: Failed to read \"SmcEnabled\"")); 1834 /** @todo: a bit of hack: if we have SMC, also show CPU in ACPI */ 1835 s->fShowCpu = s->fUseSmc; 1816 1836 1817 1837 rc = CFGMR3QueryBool (pCfgHandle, "GCEnabled", &fGCEnabled); -
trunk/src/VBox/Devices/PC/vbox.dsl
r16170 r16711 123 123 // with SpeedStep if it finds a CPU object and when it finds out that it can't, it 124 124 // tries to unload and crashes (MS probably never tested this code path). 125 // Scope (\_PR) 126 // { 127 // Processor (CPU1, 0x01, 0x00000000, 0x00) {} 128 // } 125 Scope (\_PR) 126 { 127 Processor (CPU0, 0x00, 0x00000410, 0x06) 128 { 129 Method (_STA) { Return(\_SB.UCP0) } 130 } 131 // Maybe we'll need more entries for SMP systems, enabled depending on runtime config 132 } 129 133 130 134 Scope (\_SB) … … 139 143 IndexField (IDX0, DAT0, DwordAcc, NoLock, Preserve) 140 144 { 141 MEML, 32, 142 UIOA, 32, 143 UHPT, 32, 144 USMC, 32, 145 UFDC, 32, 145 MEML, 32, 146 UIOA, 32, 147 UHPT, 32, 148 USMC, 32, 149 UFDC, 32, 150 UCP0, 32, 146 151 Offset (0x80), 147 152 ININ, 32, … … 163 168 DBG ("UFDC: ") 164 169 HEX4 (UFDC) 170 DBG ("UCP0: ") 171 HEX4 (UCP0) 165 172 } 166 173
Note:
See TracChangeset
for help on using the changeset viewer.