VirtualBox

Changeset 7702 in vbox


Ignore:
Timestamp:
Apr 2, 2008 3:07:15 PM (17 years ago)
Author:
vboxsync
Message:

Fixed a bunch of #else and #endif comments. The convention here is that on an #else we'll document what the criteria for the following body is, and for #endif the above body. So, the #else comment is the inverse of the #if and the #endif is the same as the #else, or if there isn't any #lese, the #if.

File:
1 edited

Legend:

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

    r7698 r7702  
    15761576    return VINF_SUCCESS;
    15771577
    1578 #else /* PGM_GST_TYPE != PGM_TYPE_32BIT */
     1578#else /* PGM_GST_TYPE == PGM_TYPE_AMD64 */
    15791579    AssertReleaseMsgFailed(("Shw=%d Gst=%d is not implemented!\n", PGM_GST_TYPE, PGM_SHW_TYPE));
    15801580    return VERR_INTERNAL_ERROR;
    1581 #endif /* PGM_GST_TYPE != PGM_TYPE_32BIT */
     1581#endif /* PGM_GST_TYPE == PGM_TYPE_AMD64 */
    15821582}
    15831583
     
    22472247    return rc;
    22482248
    2249 #else /* PGM_GST_TYPE != PGM_TYPE_32BIT */
     2249#else /* PGM_GST_TYPE == PGM_TYPE_AMD64 */
    22502250    AssertReleaseMsgFailed(("Shw=%d Gst=%d is not implemented!\n", PGM_GST_TYPE, PGM_SHW_TYPE));
    22512251    STAM_PROFILE_STOP(&pVM->pgm.s.CTXMID(Stat,SyncPT), a);
    22522252    return VERR_INTERNAL_ERROR;
    2253 #endif /* PGM_GST_TYPE != PGM_TYPE_32BIT */
     2253#endif /* PGM_GST_TYPE == PGM_TYPE_AMD64 */
    22542254}
    22552255
     
    23252325    return rc;
    23262326
    2327 #else /* PGM_GST_TYPE != PGM_TYPE_32BIT */
     2327#else /* PGM_GST_TYPE == PGM_TYPE_AMD64 */
    23282328
    23292329    AssertReleaseMsgFailed(("Shw=%d Gst=%d is not implemented!\n", PGM_SHW_TYPE, PGM_GST_TYPE));
    23302330    return VERR_INTERNAL_ERROR;
    2331 #endif /* PGM_GST_TYPE != PGM_TYPE_32BIT */
     2331#endif /* PGM_GST_TYPE == PGM_TYPE_AMD64 */
    23322332}
    23332333
     
    25772577    {
    25782578        unsigned        iPDSrc;
    2579 #   if PGM_SHW_TYPE == PGM_TYPE_PAE 
     2579#   if PGM_SHW_TYPE == PGM_TYPE_PAE
    25802580        PX86PDPAE       pPDPAE    = pVM->pgm.s.CTXMID(ap,PaePDs)[iPDPTRE * X86_PG_PAE_ENTRIES];
    25812581#   else
     
    25922592            continue;
    25932593        }
    2594 #  else
    2595    {
    2596 #  endif /* if PGM_GST_TYPE == PGM_TYPE_PAE || PGM_GST_TYPE == PGM_TYPE_AMD64 */
     2594#  else  /* PGM_GST_TYPE != PGM_TYPE_PAE && PGM_GST_TYPE != PGM_TYPE_AMD64 */
     2595    {
     2596#  endif /* PGM_GST_TYPE != PGM_TYPE_PAE && PGM_GST_TYPE != PGM_TYPE_AMD64 */
    25972597        for (unsigned iPD = 0; iPD < ELEMENTS(pPDSrc->a); iPD++)
    25982598        {
     
    26392639#   endif
    26402640                }
    2641 #  else /* PGM_GST_TYPE == PGM_TYPE_32BIT */
     2641#  else /* PGM_GST_TYPE != PGM_TYPE_32BIT */
    26422642                /* PAE and AMD64 modes are hardware accelerated only, so there are no mappings. */
    26432643                Assert(iPD != iPdNoMapping);
    2644 #  endif /* PGM_GST_TYPE == PGM_TYPE_32BIT */
     2644#  endif /* PGM_GST_TYPE != PGM_TYPE_32BIT */
    26452645                /*
    26462646                 * Sync page directory entry.
     
    28022802                iPD += cPTs - 1;
    28032803                pPDEDst += cPTs + (PGM_SHW_TYPE != PGM_TYPE_32BIT) * cPTs;
    2804 #  else /* PGM_GST_TYPE == PGM_TYPE_32BIT */
     2804#  else /* PGM_GST_TYPE != PGM_TYPE_32BIT */
    28052805                /* PAE and AMD64 modes are hardware accelerated only, so there are no mappings. */
    28062806                AssertFailed();
    2807 #  endif /* PGM_GST_TYPE == PGM_TYPE_32BIT */
     2807#  endif /* PGM_GST_TYPE != PGM_TYPE_32BIT */
    28082808            }
    28092809
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