VirtualBox

Changeset 21992 in vbox


Ignore:
Timestamp:
Aug 5, 2009 12:29:09 PM (15 years ago)
Author:
vboxsync
Message:

MMR3HyperSetGuard: simplify.

File:
1 edited

Legend:

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

    r21094 r21992  
    11001100     */
    11011101    uint8_t    *pbR3  = (uint8_t *)pLookup->u.Locked.pvR3;
    1102 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    1103     RTR0PTR     R0Ptr = VMMIsHwVirtExtForced(pVM) ? pLookup->u.Locked.pvR0 : NIL_RTR0PTR;
    1104 #else
    1105     RTR0PTR     R0Ptr = NIL_RTR0PTR; /* ring-0 and ring-3 uses the same mapping. */
    1106 #endif
     1102    RTR0PTR     R0Ptr = pLookup->u.Locked.pvR0 != (uintptr_t)pLookup->u.Locked.pvR3
     1103                      ? pLookup->u.Locked.pvR0
     1104                      : NIL_RTR0PTR;
    11071105    uint32_t    off   = (uint32_t)((uint8_t *)pvStart - pbR3);
    11081106    int         rc;
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