Changeset 19118 in vbox for trunk/src/VBox
- Timestamp:
- Apr 22, 2009 8:05:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r19059 r19118 357 357 rc = CFGMR3InsertNode(pInst, "Config", &pCfg); RC_CHECK(); 358 358 359 BOOL fEfiEnabled; 359 /* 360 * Firmware. 361 */ 362 #ifdef VBOX_WITH_EFI 360 363 /** @todo: implement appropriate getter */ 361 #ifdef VBOX_WITH_EFI 362 fEfiEnabled = true; 364 Bstr tmpStr1; 365 hrc = pMachine->GetExtraData(Bstr("VBoxInternal2/UseEFI"), tmpStr1.asOutParam()); H(); 366 BOOL fEfiEnabled = tmpStr1 == Bstr("on"); 363 367 #else 364 fEfiEnabled = false; 365 #endif 366 367 if (fEfiEnabled) 368 { 369 rc = CFGMR3InsertNode(pDevices, "efi", &pDev); RC_CHECK(); 370 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK(); 371 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 372 } 373 374 /* 375 * PC Bios. 376 */ 368 BOOL fEfiEnabled = false; 369 #endif 377 370 if (!fEfiEnabled) 378 371 { 372 /* 373 * PC Bios. 374 */ 379 375 rc = CFGMR3InsertNode(pDevices, "pcbios", &pDev); RC_CHECK(); 380 376 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK(); … … 431 427 } 432 428 } 429 else 430 { 431 /* 432 * EFI. 433 */ 434 rc = CFGMR3InsertNode(pDevices, "efi", &pDev); RC_CHECK(); 435 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK(); 436 rc = CFGMR3InsertInteger(pInst, "Trusted", 1); /* boolean */ RC_CHECK(); 437 } 433 438 434 439 /* … … 481 486 #endif 482 487 483 484 Bstr tmpStr; 485 rc = pMachine->GetExtraData(Bstr("VBoxInternal/Devices/SupportExtHwProfile"), tmpStr.asOutParam()); 486 487 BOOL fExtProfile; 488 489 if (SUCCEEDED(rc)) 490 fExtProfile = (tmpStr == Bstr("on")); 491 else 492 fExtProfile = false; 488 /* 489 * Temporary hack for enabling the next three devices and various ACPI features. 490 */ 491 Bstr tmpStr2; 492 hrc = pMachine->GetExtraData(Bstr("VBoxInternal2/SupportExtHwProfile"), tmpStr2.asOutParam()); H(); 493 BOOL fExtProfile = tmpStr2 == Bstr("on"); 493 494 494 495 /* … … 501 502 fHpetEnabled = false; 502 503 #endif 503 504 504 if (fHpetEnabled) 505 505 { … … 535 535 fLpcEnabled = false; 536 536 #endif 537 538 537 if (fLpcEnabled) 539 538 {
Note:
See TracChangeset
for help on using the changeset viewer.