VirtualBox

Changeset 24840 in vbox for trunk


Ignore:
Timestamp:
Nov 21, 2009 9:52:59 AM (15 years ago)
Author:
vboxsync
Message:

Main: firmware choose depends on guest bitness type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r24822 r24840  
    211211    bool afPciDeviceNo[32] = {false};
    212212    bool fFdcEnabled = false;
     213    BOOL fIs64BitGuest = false;
    213214
    214215#if !defined (VBOX_WITH_XPCOM)
     
    377378        hrc = host->GetProcessorFeature(ProcessorFeature_LongMode,
    378379                                        &fSupportsLongMode);                        H();
    379         BOOL fIs64BitGuest = false;
    380380        hrc = guestOSType->COMGETTER(Is64Bit)(&fIs64BitGuest);                      H();
    381381
     
    827827        Utf8Str efiRomFile;
    828828        /** @todo: which entry point to use for dual firmware, depend on guest? */
    829         bool f64BitEntry = eFwType == FirmwareType_EFI64;
    830 
    831         rc = findEfiRom(eFwType, efiRomFile);                                       RC_CHECK();
     829        bool f64BitEntry = fIs64BitGuest;
     830        //eFwType = f64BitEntry? FirmwareType_EFI64: FirmwareType_EFI;
     831        rc = findEfiRom(f64BitEntry? FirmwareType_EFI64: FirmwareType_EFI, efiRomFile);                  RC_CHECK();
    832832        /*
    833833         * EFI.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette