Changeset 20866 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Jun 23, 2009 7:33:23 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49011
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r20864 r20866 968 968 969 969 970 SUPR3DECL(int) SUPR3PageAllocLockedEx(size_t cPages, void **ppvPages, PSUPPAGE paPages)971 {972 return SUPR3PageAllocEx(cPages, 0 /*fFlags*/, ppvPages, NULL /*pR0Ptr*/, paPages);973 }974 975 976 SUPR3DECL(int) SUPR3PageFreeLocked(void *pvPages, size_t cPages)977 {978 /*979 * Validate.980 */981 AssertPtrReturn(pvPages, VERR_INVALID_POINTER);982 AssertReturn(cPages > 0, VERR_PAGE_COUNT_OUT_OF_RANGE);983 984 /*985 * Check if we're employing the fallback or not to avoid the986 * fuzzy handling of this in SUPR3PageFreeEx.987 */988 int rc;989 if (g_fSupportsPageAllocNoKernel)990 rc = SUPR3PageFreeEx(pvPages, cPages);991 else992 {993 /* fallback */994 rc = supR3PageUnlock(pvPages);995 if (RT_SUCCESS(rc))996 rc = suplibOsPageFree(&g_supLibData, pvPages, cPages);997 }998 return rc;999 }1000 1001 1002 970 /** 1003 * Fallback for SUPR3PageAlloc LockedEx on systems where RTR0MemObjPhysAllocNC1004 * isn'tsupported.971 * Fallback for SUPR3PageAllocEx on systems where RTR0MemObjPhysAllocNC isn't 972 * supported. 1005 973 */ 1006 974 static int supPagePageAllocNoKernelFallback(size_t cPages, void **ppvPages, PSUPPAGE paPages)
Note:
See TracChangeset
for help on using the changeset viewer.