VirtualBox

Changeset 2020 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 10, 2007 7:29:32 PM (18 years ago)
Author:
vboxsync
Message:

unbroke Darwin and OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r1895 r2020  
    17531753    int             rc;
    17541754    SUPDRVMEMREF    Mem = {0};
     1755    const size_t    cb = (size_t)cPages << PAGE_SHIFT;
    17551756    dprintf(("SUPR0LockMem: pSession=%p pvR3=%p cPages=%d paPages=%p\n",
    17561757             pSession, (void *)pvR3, cPages, paPages));
     
    17811782        AssertMsg(RTR0MemObjSize(Mem.MemObj) == cb, ("%x == %x\n", RTR0MemObjSize(Mem.MemObj), cb));
    17821783
    1783         unsigned iPage = cb >> PAGE_SHIFT;
     1784        unsigned iPage = cPages;
    17841785        while (iPage-- > 0)
    17851786        {
     
    18101811    Mem.pvR3    = pvR3;
    18111812    Mem.eType   = MEMREF_TYPE_LOCKED;
    1812     Mem.cb      = cPages << PAGE_SHIFT;
     1813    Mem.cb      = cb;
    18131814    rc = supdrvOSLockMemOne(&Mem, paPages);
    18141815    if (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