Changeset 2020 in vbox for trunk/src/VBox
- Timestamp:
- Apr 10, 2007 7:29:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r1895 r2020 1753 1753 int rc; 1754 1754 SUPDRVMEMREF Mem = {0}; 1755 const size_t cb = (size_t)cPages << PAGE_SHIFT; 1755 1756 dprintf(("SUPR0LockMem: pSession=%p pvR3=%p cPages=%d paPages=%p\n", 1756 1757 pSession, (void *)pvR3, cPages, paPages)); … … 1781 1782 AssertMsg(RTR0MemObjSize(Mem.MemObj) == cb, ("%x == %x\n", RTR0MemObjSize(Mem.MemObj), cb)); 1782 1783 1783 unsigned iPage = c b >> PAGE_SHIFT;1784 unsigned iPage = cPages; 1784 1785 while (iPage-- > 0) 1785 1786 { … … 1810 1811 Mem.pvR3 = pvR3; 1811 1812 Mem.eType = MEMREF_TYPE_LOCKED; 1812 Mem.cb = c Pages << PAGE_SHIFT;1813 Mem.cb = cb; 1813 1814 rc = supdrvOSLockMemOne(&Mem, paPages); 1814 1815 if (rc)
Note:
See TracChangeset
for help on using the changeset viewer.