Changeset 12487 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Sep 16, 2008 1:04:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r12432 r12487 431 431 { 432 432 ComPtr<IHostFloppyDrive> hostFloppyDrive; 433 hrc = floppyDrive->GetHostDrive(hostFloppyDrive.asOutParam()); H();433 hrc = floppyDrive->GetHostDrive(hostFloppyDrive.asOutParam()); H(); 434 434 if (hostFloppyDrive) 435 435 { … … 500 500 * Advanced Programmable Interrupt Controller. 501 501 */ 502 #ifdef VBOX_WITH_SMP_GUESTS 503 rc = CFGMR3InsertNode(pDevices, "apic", &pDev); RC_CHECK(); 504 /* We need LAPIC per-CPU, as it allows cross-calls */ 505 for (ULONG ulInstance = 0; ulInstance < cCpus; ulInstance++) 506 { 507 char szInstance[4]; Assert(ulInstance <= 999); 508 RTStrPrintf(szInstance, sizeof(szInstance), "%lu", ulInstance); 509 rc = CFGMR3InsertNode(pDev, szInstance, &pInst); 510 RC_CHECK(); 511 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 512 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); 513 rc = CFGMR3InsertInteger(pCfg, "IOAPIC", fIOAPIC); RC_CHECK(); 514 } 515 #else 502 516 rc = CFGMR3InsertNode(pDevices, "apic", &pDev); RC_CHECK(); 503 517 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK(); … … 505 519 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); 506 520 rc = CFGMR3InsertInteger(pCfg, "IOAPIC", fIOAPIC); RC_CHECK(); 521 #endif 507 522 508 523 if (fIOAPIC)
Note:
See TracChangeset
for help on using the changeset viewer.