VirtualBox

Changeset 18286 in vbox


Ignore:
Timestamp:
Mar 26, 2009 3:34:04 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45037
Message:

MMHyper: Corrected some incorrect VMMIsHwVirtExtForced usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/MMHyper.cpp

    r17536 r18286  
    721721                              0 /*fFlags*/,
    722722                              &pv,
     723#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    723724                              VMMIsHwVirtExtForced(pVM) ? &pvR0 : NULL,
     725#else
     726                              NULL,
     727#endif
    724728                              paPages);
    725729    if (RT_SUCCESS(rc))
    726730    {
     731#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    727732        if (!VMMIsHwVirtExtForced(pVM))
    728 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    729733            pvR0 = NIL_RTR0PTR;
    730734#else
    731             pvR0 = (uintptr_t)pv;
     735        pvR0 = (uintptr_t)pv;
    732736#endif
    733737        memset(pv, 0, cbAligned);
     
    887891                              0 /*fFlags*/,
    888892                              &pvPages,
     893#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    889894                              VMMIsHwVirtExtForced(pVM) ? &pvR0 : NULL,
     895#else
     896                              NULL,
     897#endif
    890898                              paPages);
    891899    if (RT_SUCCESS(rc))
    892900    {
     901#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    893902        if (!VMMIsHwVirtExtForced(pVM))
    894 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    895903            pvR0 = NIL_RTR0PTR;
    896904#else
    897             pvR0 = (uintptr_t)pvPages;
     905        pvR0 = (uintptr_t)pvPages;
    898906#endif
    899907        memset(pvPages, 0, cb);
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