VirtualBox

Ignore:
Timestamp:
Feb 24, 2022 4:02:00 PM (3 years ago)
Author:
vboxsync
Message:

VMM,VMMDev,scm,VBox/param.h: Don't use PAGE_BASE_GC_MASK and friends in the VMM. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r93922 r93931  
    11371137    Assert(!(fOpFlags & ~(PGM_MK_PG_IS_MMIO2 | PGM_MK_PG_IS_WRITE_FAULT)));
    11381138
    1139     GCPtr &= PAGE_BASE_GC_MASK; /** @todo this ain't necessary, right... */
     1139    GCPtr &= ~(RTGCPTR)GUEST_PAGE_OFFSET_MASK; /** @todo this ain't necessary, right... */
    11401140
    11411141    PVMCC pVM = pVCpu->CTX_SUFF(pVM);
     
    20702070    cb     += GCPtr & GUEST_PAGE_OFFSET_MASK;
    20712071    cb      = RT_ALIGN_Z(cb, GUEST_PAGE_SIZE);
    2072     GCPtr   = (GCPtr & PAGE_BASE_GC_MASK);
     2072    GCPtr  &= ~(RTGCPTR)GUEST_PAGE_OFFSET_MASK;
    20732073
    20742074    /*
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