Changeset 100435 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jul 7, 2023 1:48:03 PM (21 months ago)
- svn:sync-xref-src-repo-rev:
- 158175
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r100357 r100435 1263 1263 # endif 1264 1264 1265 # if RTLNX_VER_MIN(2,5,5) || defined(pte_offset_map) /* As usual, RHEL 3 had pte_offset_map earlier. */ 1265 # if RTLNX_VER_MIN(6,5,0) 1266 pEntry = __pte_map(&u.Middle, ulAddr); 1267 # elif RTLNX_VER_MIN(2,5,5) || defined(pte_offset_map) /* As usual, RHEL 3 had pte_offset_map earlier. */ 1266 1268 pEntry = pte_offset_map(&u.Middle, ulAddr); 1267 1269 # else … … 1364 1366 } 1365 1367 1368 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1366 1369 papVMAs = (struct vm_area_struct **)RTMemAlloc(sizeof(*papVMAs) * cPages); 1367 1370 if (papVMAs) 1368 1371 { 1372 # else 1373 RT_NOREF(papVMAs); 1374 # endif 1369 1375 LNX_MM_DOWN_READ(pTask->mm); 1370 1376 … … 1385 1391 fWrite, /* force write access. */ 1386 1392 # endif 1387 &pMemLnx->apPages[0], /* Page array. */ 1388 papVMAs); /* vmas */ 1393 &pMemLnx->apPages[0] /* Page array. */ 1394 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1395 , papVMAs /* vmas */ 1396 # endif 1397 ); 1389 1398 /* 1390 1399 * Actually this should not happen at the moment as call this function … … 1407 1416 fWrite, /* force write access. */ 1408 1417 # endif 1409 &pMemLnx->apPages[0], /* Page array. */ 1410 papVMAs /* vmas */ 1418 &pMemLnx->apPages[0] /* Page array. */ 1419 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1420 , papVMAs /* vmas */ 1421 # endif 1411 1422 # if GET_USER_PAGES_API >= KERNEL_VERSION(4, 10, 0) 1412 1423 , NULL /* locked */ … … 1427 1438 fWrite, /* force write access. */ 1428 1439 # endif 1429 &pMemLnx->apPages[0], /* Page array. */ 1430 papVMAs); /* vmas */ 1440 &pMemLnx->apPages[0] /* Page array. */ 1441 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1442 , papVMAs /* vmas */ 1443 # endif 1444 ); 1431 1445 #endif /* GET_USER_PAGES_API < KERNEL_VERSION(4, 6, 0) */ 1432 1446 if (rc == cPages) … … 1453 1467 #if RTLNX_VER_MIN(6,3,0) 1454 1468 vm_flags_set(papVMAs[rc], VM_DONTCOPY | VM_LOCKED); 1455 #el se1469 #elif GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1456 1470 papVMAs[rc]->vm_flags |= VM_DONTCOPY | VM_LOCKED; 1457 1471 #endif … … 1460 1474 LNX_MM_UP_READ(pTask->mm); 1461 1475 1476 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1462 1477 RTMemFree(papVMAs); 1478 # endif 1463 1479 1464 1480 pMemLnx->Core.u.Lock.R0Process = R0Process; … … 1487 1503 LNX_MM_UP_READ(pTask->mm); 1488 1504 1505 rc = VERR_LOCK_FAILED; 1506 1507 # if GET_USER_PAGES_API < KERNEL_VERSION(6, 5, 0) 1489 1508 RTMemFree(papVMAs); 1490 rc = VERR_LOCK_FAILED;1491 } 1509 } 1510 # endif 1492 1511 1493 1512 rtR0MemObjDelete(&pMemLnx->Core);
Note:
See TracChangeset
for help on using the changeset viewer.