VirtualBox

Changeset 14597 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Nov 25, 2008 8:41:40 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39897
Message:

Added R0 address to MMR3HyperMapHCPhys and made the MMHyperXToR0 use pvR0 for HCPhys and Locked more strickly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/MMAll.cpp

    r13832 r14597  
    219219            if (pLookup->u.Locked.pvR0)
    220220                return (RTR0PTR)((RTR0UINTPTR)pLookup->u.Locked.pvR0 + off);
    221             /** @todo #1865: accessing ring-3 memory (LOCKED)! */
     221#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE /** @todo make NIL_RTR0PTR default! */
     222            return NIL_RTR0PTR;
     223#else
    222224            return (RTR0PTR)((RTR3UINTPTR)pLookup->u.Locked.pvR3 + off);
     225#endif
     226
    223227        case MMLOOKUPHYPERTYPE_HCPHYS:
    224             /** @todo #1865: accessing ring-3 memory (HCPHYS)! */
    225             return (RTR0PTR)((RTR3UINTPTR)pLookup->u.HCPhys.pvR3 + off);
     228            if (pLookup->u.HCPhys.pvR0)
     229                return (RTR0PTR)((RTR0UINTPTR)pLookup->u.HCPhys.pvR0 + off);
     230            return NIL_RTR0PTR;
    226231        default:
    227232            AssertMsgFailed(("enmType=%d\n", pLookup->enmType));
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