VirtualBox

Changeset 12902 in vbox for trunk


Ignore:
Timestamp:
Oct 2, 2008 8:52:44 AM (16 years ago)
Author:
vboxsync
Message:

Fixed upper boundary of mode array.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r12901 r12902  
    26262626DECLINLINE(unsigned) pgmModeDataIndex(unsigned uShwType, unsigned uGstType)
    26272627{
    2628     Assert(uShwType >= PGM_TYPE_32BIT && uShwType <= PGM_TYPE_EPT);
     2628    Assert(uShwType >= PGM_TYPE_32BIT && uShwType <= PGM_TYPE_MAX);
    26292629    Assert(uGstType >= PGM_TYPE_REAL  && uGstType <= PGM_TYPE_AMD64);
    26302630    return (uShwType - PGM_TYPE_32BIT) * (PGM_TYPE_AMD64 - PGM_TYPE_REAL + 1)
     
    26542654DECLINLINE(unsigned) pgmModeDataMaxIndex(void)
    26552655{
    2656     return pgmModeDataIndex(PGM_TYPE_NESTED, PGM_TYPE_AMD64) + 1;
     2656    return pgmModeDataIndex(PGM_TYPE_MAX, PGM_TYPE_AMD64) + 1;
    26572657}
    26582658
  • trunk/src/VBox/VMM/PGMInternal.h

    r12692 r12902  
    193193#define PGM_TYPE_NESTED     6
    194194#define PGM_TYPE_EPT        7
     195#define PGM_TYPE_MAX        PGM_TYPE_EPT
    195196/** @} */
    196197
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