VirtualBox

Changeset 1562 in vbox


Ignore:
Timestamp:
Mar 19, 2007 7:13:44 PM (18 years ago)
Author:
vboxsync
Message:

Forgot to include offset into first page into page number calculation in another place as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r1561 r1562  
    281281                {
    282282                    cLinPtrs++;
    283                     cLinPtrPages += (pGuestParm->u.Pointer.size + PAGE_SIZE - 1) / PAGE_SIZE;
     283                    /* Take the offset into the current page also into account! */
     284                    cLinPtrPages += ((pGuestParm->u.Pointer.u.linearAddr & PAGE_OFFSET_MASK)
     285                                      + pGuestParm->u.Pointer.size + PAGE_SIZE - 1) / PAGE_SIZE;
    284286                }
    285287               
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