Changeset 82861 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 26, 2020 2:43:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r82860 r82861 1048 1048 if (pMemToMapDarwin->pMemDesc) 1049 1049 { 1050 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 1050 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 /* The kIOMapPrefault option was added in 10.10.0. */ 1051 IOMemoryMap *pMemMap = pMemToMapDarwin->pMemDesc->createMappingInTask((task_t)R0Process, 1052 0, 1053 kIOMapAnywhere | kIOMapDefaultCache | kIOMapPrefault, 1054 offSub, 1055 cbSub); 1056 #elif MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 1057 static uint32_t volatile s_fOptions = UINT32_MAX; 1058 uint32_t fOptions = s_fOptions; 1059 if (RT_UNLIKELY(fOptions == UINT32_MAX)) 1060 s_fOptions = fOptions = version_major >= 14 ? 0x10000000 /*kIOMapPrefault*/ : 0; /* Since 10.10.0. */ 1051 1061 IOMemoryMap *pMemMap = pMemToMapDarwin->pMemDesc->createMappingInTask((task_t)R0Process, 1052 1062 0, 1053 kIOMapAnywhere | kIOMapDefaultCache ,1063 kIOMapAnywhere | kIOMapDefaultCache | fOptions, 1054 1064 offSub, 1055 1065 cbSub);
Note:
See TracChangeset
for help on using the changeset viewer.