VirtualBox

Ignore:
Timestamp:
Oct 28, 2010 9:27:05 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67140
Message:

*: spelling fixes, thanks Timeless!

File:
1 edited

Legend:

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

    r32431 r33540  
    3131 * by the #GMM_CHUNK_SIZE \#define.
    3232 *
    33  * Each chunk is given an unquie ID. Each page also has a unique ID. The
     33 * Each chunk is given an unique ID. Each page also has a unique ID. The
    3434 * relation ship between the two IDs is:
    3535 * @code
     
    9494 * The per page cost in kernel space is 32-bit plus whatever RTR0MEMOBJ
    9595 * entails. In addition there is the chunk cost of approximately
    96  * (sizeof(RT0MEMOBJ) + sizof(CHUNK)) / 2^CHUNK_SHIFT bytes per page.
     96 * (sizeof(RT0MEMOBJ) + sizeof(CHUNK)) / 2^CHUNK_SHIFT bytes per page.
    9797 *
    9898 * On Windows the per page #RTR0MEMOBJ cost is 32-bit on 32-bit windows
     
    112112 *
    113113 * One simple fast mutex will be employed in the initial implementation, not
    114  * two as metioned in @ref subsec_pgmPhys_Serializing.
     114 * two as mentioned in @ref subsec_pgmPhys_Serializing.
    115115 *
    116116 * @see @ref subsec_pgmPhys_Serializing
     
    293293/** A private page. */
    294294#define GMM_PAGE_STATE_PRIVATE          0
    295 /** A private page - alternative value used on the 32-bit implemenation.
     295/** A private page - alternative value used on the 32-bit implementation.
    296296 * This will never be used on 64-bit hosts. */
    297297#define GMM_PAGE_STATE_PRIVATE_32       1
     
    489489
    490490    /** Shared module tree (global). */
    491     /** @todo seperate trees for distinctly different guest OSes. */
     491    /** @todo separate trees for distinctly different guest OSes. */
    492492    PAVLGCPTRNODECORE   pGlobalSharedModuleTree;
    493493
     
    11151115 * @param   cBasePages      The number of pages that may be allocated for the base RAM and ROMs.
    11161116 *                          This does not include MMIO2 and similar.
    1117  * @param   cShadowPages    The number of pages that may be allocated for shadow pageing structures.
     1117 * @param   cShadowPages    The number of pages that may be allocated for shadow paging structures.
    11181118 * @param   cFixedPages     The number of pages that may be allocated for fixed objects like the
    11191119 *                          hyper heap, MMIO2 and similar.
     
    11541154        {
    11551155            /*
    1156              * Check if we can accomodate this.
     1156             * Check if we can accommodate this.
    11571157             */
    11581158            /* ... later ... */
     
    12161216 * @param   cBasePages      The number of pages that may be allocated for the base RAM and ROMs.
    12171217 *                          This does not include MMIO2 and similar.
    1218  * @param   cShadowPages    The number of pages that may be allocated for shadow pageing structures.
     1218 * @param   cShadowPages    The number of pages that may be allocated for shadow paging structures.
    12191219 * @param   cFixedPages     The number of pages that may be allocated for fixed objects like the
    12201220 *                          hyper heap, MMIO2 and similar.
     
    12501250        {
    12511251            /*
    1252              * Check if we can accomodate this.
     1252             * Check if we can accommodate this.
    12531253             */
    12541254            /* ... later ... */
     
    23592359        }
    23602360
    2361         /* Allocate a new continous chunk. */
     2361        /* Allocate a new continuous chunk. */
    23622362        rc = gmmR0AllocateOneChunk(pGMM, &pGMM->Private, pGVM->hSelf, GMMCHUNKTYPE_CONTINUOUS, &pChunk);
    23632363        if (RT_FAILURE(rc))
     
    29282928 * @retval  VERR_GMM_ATTEMPT_TO_FREE_TOO_MUCH
    29292929 * @retval  VERR_GMM_ATTEMPT_TO_DEFLATE_TOO_MUCH
    2930  * @retval  VERR_GMM_OVERCOMMITED_TRY_AGAIN_IN_A_BIT - reset condition
     2930 * @retval  VERR_GMM_OVERCOMMITTED_TRY_AGAIN_IN_A_BIT - reset condition
    29312931 *          indicating that we won't necessarily have sufficient RAM to boot
    29322932 *          the VM again and that it should pause until this changes (we'll try
     
    29592959
    29602960    /*
    2961      * Take the sempahore and do some more validations.
     2961     * Take the semaphore and do some more validations.
    29622962     */
    29632963    rc = RTSemFastMutexRequest(pGMM->Mtx);
     
    31383138
    31393139    /*
    3140      * Take the sempahore and do some more validations.
     3140     * Take the semaphore and do some more validations.
    31413141     */
    31423142    rc = RTSemFastMutexRequest(pGMM->Mtx);
     
    35393539
    35403540    /*
    3541      * Take the sempahore and do some more validations.
     3541     * Take the semaphore and do some more validations.
    35423542     */
    35433543    rc = RTSemFastMutexRequest(pGMM->Mtx);
     
    36593659                pRecVM->pGlobalModule = pGlobalModule;
    36603660                if (    fNewModule
    3661                     ||  pRecVM->fCollision == true) /* colliding module unregistered and new one registerd since the last check */
     3661                    ||  pRecVM->fCollision == true) /* colliding module unregistered and new one registered since the last check */
    36623662                {
    36633663                    pGlobalModule->cUsers++;
     
    37393739
    37403740    /*
    3741      * Take the sempahore and do some more validations.
     3741     * Take the semaphore and do some more validations.
    37423742     */
    37433743    rc = RTSemFastMutexRequest(pGMM->Mtx);
     
    40564056
    40574057    /*
    4058      * Take the sempahore and do some more validations.
     4058     * Take the semaphore and do some more validations.
    40594059     */
    40604060    rc = RTSemFastMutexRequest(pGMM->Mtx);
     
    41234123
    41244124    /*
    4125      * Take the sempahore and do some more validations.
     4125     * Take the semaphore and do some more validations.
    41264126     */
    41274127    int rc = RTSemFastMutexRequest(pGMM->Mtx);
     
    41764176# ifndef DEBUG_sandervl
    41774177    /*
    4178      * Take the sempahore and do some more validations.
     4178     * Take the semaphore and do some more validations.
    41794179     */
    41804180    rc = RTSemFastMutexRequest(pGMM->Mtx);
     
    42874287
    42884288    /*
    4289      * Take the sempahore and do some more validations.
     4289     * Take the semaphore and do some more validations.
    42904290     */
    42914291    int rc = RTSemFastMutexRequest(pGMM->Mtx);
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