Changeset 41069 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Apr 26, 2012 12:01:00 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 77637
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r41060 r41069 426 426 * The kIOMemoryKernelUserShared flag just forces the result to be page aligned. 427 427 */ 428 #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. */ 429 size_t const cbFudged = cb + PAGE_SIZE; 430 #else 431 size_t const cbFudged = cb; 432 #endif 428 433 int rc; 429 434 IOBufferMemoryDescriptor *pMemDesc = … … 432 437 | kIODirectionInOut 433 438 | (fContiguous ? kIOMemoryPhysicallyContiguous : 0), 434 cb ,439 cbFudged, 435 440 PhysMask); 436 441 if (pMemDesc) … … 439 444 if (IORet == kIOReturnSuccess) 440 445 { 441 void *pv = pMemDesc->getBytesNoCopy(0, cb );446 void *pv = pMemDesc->getBytesNoCopy(0, cbFudged); 442 447 if (pv) 443 448 {
Note:
See TracChangeset
for help on using the changeset viewer.