VirtualBox

Ignore:
Timestamp:
Jul 5, 2010 1:03:59 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63343
Message:

PGMAllGst.h: Fixed >= _4G tests, bad a #if statement was copied around...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r30368 r30615  
    5959#elif PGM_GST_TYPE == PGM_TYPE_32BIT || PGM_GST_TYPE == PGM_TYPE_PAE || PGM_GST_TYPE == PGM_TYPE_AMD64
    6060
    61 #if PGM_GST_MODE != PGM_MODE_AMD64
     61# if PGM_GST_TYPE != PGM_MODE_AMD64
    6262    /* Boundary check. */
    6363    if (GCPtr >= _4G)
    64         return VERR_INVALID_ADDRESS;
     64        return VERR_PAGE_TABLE_NOT_PRESENT;
    6565# endif
    6666
     
    181181    Assert((cb & PAGE_OFFSET_MASK) == 0);
    182182
    183 #if PGM_GST_MODE != PGM_MODE_AMD64
     183# if PGM_GST_TYPE != PGM_MODE_AMD64
    184184    /* Boundary check. */
    185185    if (GCPtr >= _4G)
    186         return VERR_INVALID_ADDRESS;
     186        return VERR_PAGE_TABLE_NOT_PRESENT;
    187187# endif
    188188
     
    292292 || PGM_GST_TYPE == PGM_TYPE_AMD64
    293293
    294 #if PGM_GST_MODE != PGM_MODE_AMD64
     294# if PGM_GST_TYPE != PGM_MODE_AMD64
    295295    /* Boundary check. */
    296296    if (GCPtr >= _4G)
    297         return VERR_INVALID_ADDRESS;
     297        return VERR_PAGE_TABLE_NOT_PRESENT;
    298298# endif
    299299
     
    338338
    339339    RTGCPTR         GCPtr  = pCur->Core.Key;
    340 #if PGM_GST_MODE != PGM_MODE_AMD64
     340#if PGM_GST_TYPE != PGM_MODE_AMD64
    341341    /* skip all stuff above 4GB if not AMD64 mode. */
    342     if (GCPtr >= _4GB)
     342    if (GCPtr >= _4G)
    343343        return 0;
    344344#endif
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