VirtualBox

Ignore:
Timestamp:
Nov 1, 2019 2:37:52 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/memobj-r0drv-os2.cpp: Implemented sub-mappings in kernel space. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp

    r78120 r81620  
    349349                                          unsigned fProt, size_t offSub, size_t cbSub)
    350350{
    351     AssertMsgReturn(!offSub && !cbSub, ("%#x %#x\n", offSub, cbSub), VERR_NOT_SUPPORTED);
    352351    AssertMsgReturn(pvFixed == (void *)-1, ("%p\n", pvFixed), VERR_NOT_SUPPORTED);
    353352
     
    357356    if (uAlignment > PAGE_SIZE)
    358357        return VERR_NOT_SUPPORTED;
    359 
    360358
    361359/** @todo finish the implementation. */
     
    416414     * (reference counting).
    417415     */
     416    if (!cbSub)
     417        cbSub = pMemToMapOs2->Core.cb - offSub;
    418418    PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF(RTR0MEMOBJOS2, Lock), RTR0MEMOBJTYPE_MAPPING,
    419                                                            pvR0, pMemToMapOs2->Core.cb);
     419                                                           (uint8_t *)pvR0 + offSub, cbSub);
    420420    if (pMemOs2)
    421421    {
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