VirtualBox

Changeset 4763 in vbox


Ignore:
Timestamp:
Sep 13, 2007 9:36:50 AM (17 years ago)
Author:
vboxsync
Message:

Use MMHyperAlloc

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CFGMInternal.h

    r4071 r4763  
    138138
    139139    /** Pointer to root node. */
    140     HCPTRTYPE(PCFGMNODE)    pRoot;
     140    R3PTRTYPE(PCFGMNODE)    pRoot;
    141141} CFGM;
    142142
  • trunk/src/VBox/VMM/MMPagePool.cpp

    r4762 r4763  
    6161     * Allocate the pool structures.
    6262     */
    63     int rc = SUPPageAlloc(RT_ALIGN_32(sizeof(*pVM->mm.s.pPagePool), PAGE_SIZE)/PAGE_SIZE, (void **)&pVM->mm.s.pPagePool);
     63    int rc = MMHyperAlloc(pVM, sizeof(*pVM->mm.s.pPagePool), 0, MM_TAG_MM_PAGE, (void **)&pVM->mm.s.pPagePool);
    6464    if (VBOX_FAILURE(rc))
    6565        return rc;
     
    7474    STAM_REG(pVM, &pVM->mm.s.pPagePool->cErrors,        STAMTYPE_COUNTER, "/MM/Page/Def/cErrors",       STAMUNIT_ERRORS,"Number of errors for the default pool.");
    7575
    76     rc = SUPPageAlloc(RT_ALIGN_32(sizeof(*pVM->mm.s.pPagePoolLow), PAGE_SIZE)/PAGE_SIZE, (void **)&pVM->mm.s.pPagePoolLow);
     76    rc = MMHyperAlloc(pVM, sizeof(*pVM->mm.s.pPagePoolLow), 0, MM_TAG_MM_PAGE, (void **)&pVM->mm.s.pPagePoolLow);
    7777    if (VBOX_FAILURE(rc))
    7878        return rc;
     
    120120            pSubPool = pSubPool->pNext;
    121121        }
    122 
    123         SUPPageFree(pVM->mm.s.pPagePool, RT_ALIGN_32(sizeof(*pVM->mm.s.pPagePool), PAGE_SIZE)/PAGE_SIZE);
    124122        pVM->mm.s.pPagePool = NULL;
    125123    }
     
    141139            pSubPool = pSubPool->pNext;
    142140        }
    143 
    144         SUPPageFree(pVM->mm.s.pPagePoolLow, RT_ALIGN_32(sizeof(*pVM->mm.s.pPagePoolLow), PAGE_SIZE)/PAGE_SIZE);
    145141        pVM->mm.s.pPagePoolLow = NULL;
    146142    }
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