VirtualBox

Changeset 28017 in vbox for trunk


Ignore:
Timestamp:
Apr 6, 2010 3:56:48 PM (15 years ago)
Author:
vboxsync
Message:

Solaris/r0drv: memobj, Move the Assertion check to common path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c

    r27675 r28017  
    206206        return VERR_NO_MEMORY;
    207207    }
    208     Assert(!(physAddr & PAGE_OFFSET_MASK));
    209208    pMemSolaris->Core.pv = NULL;
    210209    pMemSolaris->Core.u.Phys.PhysBase = physAddr;
     
    213212#endif
    214213
     214    Assert(!(physAddr & PAGE_OFFSET_MASK));
    215215    *ppMem = &pMemSolaris->Core;
    216216    return VINF_SUCCESS;
     
    468468int rtR0MemObjNativeProtect(PRTR0MEMOBJINTERNAL pMem, size_t offSub, size_t cbSub, uint32_t fProt)
    469469{
     470    PRTR0MEMOBJSOLARIS pMemSolaris = (PRTR0MEMOBJSOLARIS)pMem;
     471
     472    if (pMemSolaris->Core.enmType == RTR0MEMOBJTYPE_PHYS_NC)
     473    {
     474//        LogRel(("here \n"));
     475//        vbi_page_lock(pMemSolaris->pvHandle, pMemSolaris->Core.cb);
     476    }
     477
    470478    NOREF(pMem);
    471479    NOREF(offSub);
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