VirtualBox

Changeset 22923 in vbox


Ignore:
Timestamp:
Sep 10, 2009 9:57:48 PM (15 years ago)
Author:
vboxsync
Message:

GVMMR0.cpp: An attempt at hacking my way around the current snow leopard sigsegvs at the very end of the VM structure.

File:
1 edited

Legend:

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

    r22890 r22923  
    600600                        const uint32_t  cbVM   = RT_UOFFSETOF(VM, aCpus[cCpus]);
    601601                        const uint32_t  cPages = RT_ALIGN_32(cbVM, PAGE_SIZE) >> PAGE_SHIFT;
     602#ifdef RT_OS_DARWIN /** @todo Figure out why this is broken. Is it only on snow leopard? */
     603                        rc = RTR0MemObjAllocLow(&pGVM->gvmm.s.VMMemObj, (cPages + 1) << PAGE_SHIFT, false /* fExecutable */);
     604#else
    602605                        rc = RTR0MemObjAllocLow(&pGVM->gvmm.s.VMMemObj, cPages << PAGE_SHIFT, false /* fExecutable */);
     606#endif
    603607                        if (RT_SUCCESS(rc))
    604608                        {
Note: See TracChangeset for help on using the changeset viewer.

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