VirtualBox

Changeset 25946 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 20, 2010 11:52:24 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56788
Message:

*: VBOX_WITH_RAW_MODE - Initial build changes (builds on mac os x).

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r25901 r25946  
    266266    rc = CFGMR3InsertInteger(pRoot, "NumCPUs",              cCpus);                 RC_CHECK();
    267267    rc = CFGMR3InsertInteger(pRoot, "TimerMillies",         10);                    RC_CHECK();
     268#ifdef VBOX_WITH_RAW_MODE
    268269    rc = CFGMR3InsertInteger(pRoot, "RawR3Enabled",         1);     /* boolean */   RC_CHECK();
    269270    rc = CFGMR3InsertInteger(pRoot, "RawR0Enabled",         1);     /* boolean */   RC_CHECK();
     
    271272    rc = CFGMR3InsertInteger(pRoot, "PATMEnabled",          1);     /* boolean */   RC_CHECK();
    272273    rc = CFGMR3InsertInteger(pRoot, "CSAMEnabled",          1);     /* boolean */   RC_CHECK();
     274#endif
    273275
    274276    /* cpuid leaf overrides. */
     
    310312    /* hardware virtualization extensions */
    311313    BOOL fHWVirtExEnabled;
     314    BOOL fHwVirtExtForced;
     315#ifdef VBOX_WITH_RAW_MODE
    312316    hrc = pMachine->GetHWVirtExProperty(HWVirtExPropertyType_Enabled, &fHWVirtExEnabled); H();
    313317    if (cCpus > 1) /** @todo SMP: This isn't nice, but things won't work on mac otherwise. */
    314318        fHWVirtExEnabled = TRUE;
    315 
    316 #ifdef RT_OS_DARWIN
    317     rc = CFGMR3InsertInteger(pRoot, "HwVirtExtForced",      fHWVirtExEnabled);      RC_CHECK();
    318 #else
     319# ifdef RT_OS_DARWIN
     320    fHwVirtExtForced = fHWVirtExEnabled;
     321# else
    319322    /* - With more than 4GB PGM will use different RAMRANGE sizes for raw
    320323         mode and hv mode to optimize lookup times.
    321324       - With more than one virtual CPU, raw-mode isn't a fallback option. */
    322     BOOL fHwVirtExtForced = fHWVirtExEnabled
    323                          && (   cbRam > (_4G - cbRamHole)
    324                              || cCpus > 1);
     325    fHwVirtExtForced = fHWVirtExEnabled
     326                    && (   cbRam > (_4G - cbRamHole)
     327                        || cCpus > 1);
     328# endif
     329#else  /* !VBOX_WITH_RAW_MODE */
     330    fHWVirtExEnabled = fHwVirtExtForced = TRUE;
     331#endif /* !VBOX_WITH_RAW_MODE */
    325332    rc = CFGMR3InsertInteger(pRoot, "HwVirtExtForced",      fHwVirtExtForced);      RC_CHECK();
    326 #endif
    327333
    328334    PCFGMNODE pHWVirtExt;
     
    361367#endif
    362368
    363         /* @todo Not exactly pretty to check strings; VBOXOSTYPE would be better, but that requires quite a bit of API change in Main. */
     369        /** @todo Not exactly pretty to check strings; VBOXOSTYPE would be better, but that requires quite a bit of API change in Main. */
    364370        if (    !fIs64BitGuest
    365371            &&  fIOAPIC
  • trunk/src/VBox/Main/Makefile.kmk

    r25813 r25946  
    4545 include $(KBUILD_PATH)/tools/VCC70.kmk
    4646 include $(KBUILD_PATH)/sdks/WINPSDK.kmk
    47 endif #!VBOX_ONLY_SDK
     47endif # !VBOX_ONLY_SDK
    4848
    4949
     
    5656 endif
    5757 ifneq ($(KBUILD_TARGET),os2)
    58   VBOX_MAIN_DEFS+= VBOX_WITH_SYS_V_IPC_SESSION_WATCHER
     58  VBOX_MAIN_DEFS += VBOX_WITH_SYS_V_IPC_SESSION_WATCHER
    5959 endif
    6060endif
    6161VBOX_MAIN_DEFS += \
     62        $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \
    6263        $(if $(VBOX_WITH_NETFLT),VBOX_WITH_NETFLT,) \
    6364        $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
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