VirtualBox

Changeset 17286 in vbox


Ignore:
Timestamp:
Mar 3, 2009 2:44:11 PM (16 years ago)
Author:
vboxsync
Message:

PGM,MM: -MM_RAM_FLAGS_CREFS_PHYSEXT, -MM_RAM_FLAGS_IDX_OVERFLOWED.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/mm.h

    r17285 r17286  
    8686#define MM_RAM_FLAGS_DYNAMIC_ALLOC      RT_BIT(11)
    8787
    88 /** The (shifted) cRef value used to indiciate that the idx is the head of a
    89  * physical cross reference extent list. */
    90 #define MM_RAM_FLAGS_CREFS_PHYSEXT      0x3
    9188/** The shift used to get the page pool idx. (Apply MM_RAM_FLAGS_IDX_MASK to the result when shifting down). */
    9289#define MM_RAM_FLAGS_IDX_SHIFT          48
    9390/** The mask applied to the the page pool idx after using MM_RAM_FLAGS_IDX_SHIFT to shift it down. */
    9491#define MM_RAM_FLAGS_IDX_MASK           0x3fff
    95 /** The idx value when we're out of of extents or there are simply too many mappings of this page. */
    96 #define MM_RAM_FLAGS_IDX_OVERFLOWED     MM_RAM_FLAGS_IDX_MASK
    9792/** @} */
    9893
  • trunk/src/VBox/VMM/PGMInternal.h

    r17285 r17286  
    19781978#  error "MM_RAM_FLAGS_IDX_SHIFT - 48 != PGMPOOL_TD_IDX_SHIFT"
    19791979# endif
     1980#endif
     1981#ifdef MM_RAM_FLAGS_IDX_MASK
    19801982# if MM_RAM_FLAGS_IDX_MASK != PGMPOOL_TD_IDX_MASK
    19811983#  error "MM_RAM_FLAGS_IDX_MASK != PGMPOOL_TD_IDX_MASK"
    1982 # endif
    1983 # if MM_RAM_FLAGS_IDX_OVERFLOWED != PGMPOOL_TD_IDX_OVERFLOWED
    1984 #  error "MM_RAM_FLAGS_IDX_OVERFLOWED != PGMPOOL_TD_IDX_OVERFLOWED"
    19851984# endif
    19861985#endif
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r17285 r17286  
    34283428        }
    34293429        else
    3430             u16 = PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, MM_RAM_FLAGS_IDX_OVERFLOWED);
    3431     }
    3432     else if (u16 != PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, MM_RAM_FLAGS_IDX_OVERFLOWED))
     3430            u16 = PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, PGMPOOL_TD_IDX_OVERFLOWED);
     3431    }
     3432    else if (u16 != PGMPOOL_TD_MAKE(PGMPOOL_TD_CREFS_PHYSEXT, PGMPOOL_TD_IDX_OVERFLOWED))
    34333433    {
    34343434        /*
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