VirtualBox

Changeset 26847 in vbox for trunk/src/VBox/Runtime/r0drv/os2


Ignore:
Timestamp:
Feb 26, 2010 1:19:14 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58125
Message:

Don't pass uAlignment=0 to rtR0MemObjNativeAllocPhys, resolve the alias like is done for the other APIs.

File:
1 edited

Legend:

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

    r26430 r26847  
    199199    AssertMsgReturn(PhysHighest >= 16 *_1M, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_IMPLEMENTED);
    200200
    201     /** @todo */
    202     if (    uAlignment != 0
    203         &&  uAlignment != PAGE_SIZE)
     201    /** @todo alignment  */
     202    if (uAlignment != PAGE_SIZE)
    204203        return VERR_NOT_SUPPORTED;
    205204
     
    228227{
    229228    /** @todo rtR0MemObjNativeAllocPhys / darwin. */
    230     return rtR0MemObjNativeAllocPhys(ppMem, cb, PhysHighest);
     229    return rtR0MemObjNativeAllocPhys(ppMem, cb, PhysHighest, PAGE_SIZE);
    231230}
    232231
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