VirtualBox

Changeset 2637 in vbox for trunk/src


Ignore:
Timestamp:
May 14, 2007 7:14:38 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21162
Message:

if IOAPIC is enabled enable ACPI as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r2333 r2637  
    160160
    161161static bool g_fIOAPIC = false;
    162 static bool fACPI = true;
    163 static bool fAudio = false;
     162static bool g_fACPI = true;
     163static bool g_fAudio = false;
    164164#ifdef VBOXBFE_WITH_USB
    165 static bool fUSB = false;
     165static bool g_fUSB = false;
    166166#endif
    167167//static bool fPacketSniffer = false;
     
    426426        }
    427427        else if (strcmp(pszArg, "-fullscreen") == 0)
    428         {
    429428            fFullscreen = true;
    430         }
    431429        else if (strcmp(pszArg, "-nofstoggle") == 0)
    432         {
    433430            gfAllowFullscreenToggle = false;
    434         }
    435431        else if (strcmp(pszArg, "-nohostkey") == 0)
    436432        {
     
    439435        }
    440436        else if (strcmp(pszArg, "-acpi") == 0)
    441         {
    442             fACPI = true;
    443         }
     437            g_fACPI = true;
    444438        else if (strcmp(pszArg, "-noacpi") == 0)
    445         {
    446             fACPI = false;
    447         }
     439            g_fACPI = false;
    448440        else if (strcmp(pszArg, "-ioapic") == 0)
    449         {
    450441            g_fIOAPIC = true;
    451         }
    452442        else if (strcmp(pszArg, "-noioapic") == 0)
    453         {
    454443            g_fIOAPIC = false;
    455         }
    456444        else if (strcmp(pszArg, "-audio") == 0)
    457         {
    458             fAudio = true;
    459         }
     445            g_fAudio = true;
    460446#ifdef VBOXBFE_WITH_USB
    461447        else if (strcmp(pszArg, "-usb") == 0)
    462         {
    463             fUSB = true;
    464         }
     448            g_fUSB = true;
    465449#endif
    466450        else if (strcmp(pszArg, "-hda") == 0)
     
    600584#endif
    601585        else if (strcmp(pszArg, "-rellog") == 0)
    602         {
    603586            g_fReleaseLog = true;
    604         }
    605587        else if (strcmp(pszArg, "-norellog") == 0)
    606         {
    607588            g_fReleaseLog = false;
    608         }
    609589#ifdef VBOXSDL_ADVANCED_OPTIONS
    610590        else if (strcmp(pszArg, "-rawr0") == 0)
    611         {
    612591            fRawR0 = true;
    613         }
    614592        else if (strcmp(pszArg, "-norawr0") == 0)
    615         {
    616593            fRawR0 = false;
    617         }
    618594        else if (strcmp(pszArg, "-rawr3") == 0)
    619         {
    620595            fRawR3 = true;
    621         }
    622596        else if (strcmp(pszArg, "-norawr3") == 0)
    623         {
    624597            fRawR3 = false;
    625         }
    626598        else if (strcmp(pszArg, "-patm") == 0)
    627         {
    628599            fPATM = true;
    629         }
    630600        else if (strcmp(pszArg, "-nopatm") == 0)
    631         {
    632601            fPATM = false;
    633         }
    634602        else if (strcmp(pszArg, "-csam") == 0)
    635         {
    636603            fCSAM = true;
    637         }
    638604        else if (strcmp(pszArg, "-nocsam") == 0)
    639         {
    640605            fCSAM = false;
    641         }
    642606#endif /* VBOXSDL_ADVANCED_OPTIONS */
    643607#ifdef __L4__
     
    652616            return 1;
    653617        }
     618    }
     619
     620    if (g_fIOAPIC && !g_fACPI)
     621    {
     622        RTPrintf("IOAPIC enabled, enabling ACPI as well!\n");
     623        g_fACPI = true;
    654624    }
    655625
     
    964934     * Capture USB devices.
    965935     */
    966     if (fUSB)
     936    if (g_fUSB)
    967937    {
    968938        gHostUSB = new HostUSB();
     
    11701140     * ACPI
    11711141     */
    1172     if (fACPI)
     1142    if (g_fACPI || g_fIOAPIC)
    11731143    {
    11741144        rc = CFGMR3InsertNode(pDevices, "acpi", &pDev);                             CHECK_RC();
     
    13021272    rc = CFGMR3InsertInteger(pInst, "Trusted",              1);     /* boolean */   CHECK_RC();
    13031273    rc = CFGMR3InsertNode(pInst,    "Config", &pCfg);                               CHECK_RC();
     1274    rc = CFGMR3InsertInteger(pCfg,  "IOAPIC", g_fIOAPIC);                           CHECK_RC();
    13041275
    13051276    /*
     
    15711542     * AC'97 ICH audio
    15721543     */
    1573     if (fAudio)
     1544    if (g_fAudio)
    15741545    {
    15751546        rc = CFGMR3InsertNode(pDevices, "ichac97", &pDev);
     
    15991570     * The USB Controller.
    16001571     */
    1601     if (fUSB)
     1572    if (g_fUSB)
    16021573    {
    16031574        rc = CFGMR3InsertNode(pDevices, "usb-ohci", &pDev);                         CHECK_RC();
Note: See TracChangeset for help on using the changeset viewer.

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