VirtualBox

Changeset 41069 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 26, 2012 12:01:00 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77637
Message:

GMMR0,memobj-r0drv-darwin.cpp: Moved the allocate fudge factor from GMMR0 to the darwin code. Mystery still unsolved, thought to be related to various panics as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r40806 r41069  
    821821                        const uint32_t  cbVM   = RT_UOFFSETOF(VM, aCpus[cCpus]);
    822822                        const uint32_t  cPages = RT_ALIGN_32(cbVM, PAGE_SIZE) >> PAGE_SHIFT;
    823 #ifdef RT_OS_DARWIN /** @todo Figure out why this is broken. Is it only on snow leopard? */
    824                         rc = RTR0MemObjAllocLow(&pGVM->gvmm.s.VMMemObj, (cPages + 1) << PAGE_SHIFT, false /* fExecutable */);
    825 #else
    826823                        rc = RTR0MemObjAllocLow(&pGVM->gvmm.s.VMMemObj, cPages << PAGE_SHIFT, false /* fExecutable */);
    827 #endif
    828824                        if (RT_SUCCESS(rc))
    829825                        {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette