Changeset 82877 in vbox for trunk/src/VBox
- Timestamp:
- Jan 27, 2020 1:52:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r82868 r82877 463 463 RTR0MEMOBJTYPE enmType, size_t uAlignment) 464 464 { 465 RT_NOREF_PV(uAlignment);466 465 int rc; 467 466 … … 475 474 * The kIOMemoryMapperNone flag is required since 10.8.2 (IOMMU changes?). 476 475 */ 476 477 /* This is an old fudge from the snow leoard days: "Is it only on snow leopard? 478 Seen allocating memory for the VM structure, last page corrupted or 479 inaccessible." Made it only apply to snow leopard and older for now. */ 477 480 size_t cbFudged = cb; 478 if (1) /** @todo Figure out why this is broken. Is it only on snow leopard? Seen allocating memory for the VM structure, last page corrupted or inaccessible. */ 481 if (version_major >= 11 /* 10 = 10.7.x = Lion. */) 482 { /* likely */ } 483 else 479 484 cbFudged += PAGE_SIZE; 480 481 uint64_t uAlignmentActual = uAlignment;482 485 483 486 IOOptionBits fOptions = kIOMemoryKernelUserShared | kIODirectionInOut; … … 490 493 versions 10.5.0 up to 10.7.0 it was private, and 10.4.8-10.5.0 it was 491 494 x86 only and didn't have the alignment parameter (slot was different too). */ 495 uint64_t uAlignmentActual = uAlignment; 492 496 IOBufferMemoryDescriptor *pMemDesc; 493 497 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
Note:
See TracChangeset
for help on using the changeset viewer.