VirtualBox

Changeset 14606 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Nov 25, 2008 10:08:39 PM (16 years ago)
Author:
vboxsync
Message:

HWACCMR0.cpp: partly enabled the code on the mac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r14533 r14606  
    161161    HWACCMR0Globals.pfnSetupVM          = HWACCMR0DummySetupVM;
    162162
    163 #ifndef VBOX_WITH_HYBIRD_32BIT_KERNEL /* paranoia */
    164 
    165163    /*
    166164     * Check for VT-x and AMD-V capabilities
    167165     */
     166#ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     167    if (    ASMHasCpuId()
     168        &&  SUPR0GetPagingMode() < SUPPAGINGMODE_AMD64) /* VMON -> #UD in compatability mode; temporary hack. */
     169#else
    168170    if (ASMHasCpuId())
     171#endif
    169172    {
    170173        uint32_t u32FeaturesECX;
     
    352355    else
    353356        HWACCMR0Globals.lLastError = VERR_HWACCM_NO_CPUID;
    354 
    355 #endif /* !VBOX_WITH_HYBIRD_32BIT_KERNEL */
    356357
    357358    if (HWACCMR0Globals.vmx.fSupported)
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