VirtualBox

Changeset 93943 in vbox


Ignore:
Timestamp:
Feb 24, 2022 9:15:08 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Banned the use of PAGE_ADDRESS and PHYS_PAGE_ADDRESS too. bugref:9898

File:
1 edited

Legend:

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

    r93725 r93943  
    23942394 * @param   pCache          Cache structure pointer
    23952395 * @param   GCPhys          GC physical address
    2396  * @param   pbHC            HC pointer corresponding to physical page
     2396 * @param   pbR3            HC pointer corresponding to physical page
    23972397 *
    23982398 * @thread  EMT.
     
    24042404    Assert(VM_IS_EMT(pVM));
    24052405
    2406     GCPhys = PHYS_PAGE_ADDRESS(GCPhys);
    2407     pbR3   = (uint8_t *)PAGE_ADDRESS(pbR3);
     2406    GCPhys &= ~(RTGCPHYS)GUEST_PAGE_OFFSET_MASK;
     2407    pbR3   = (uint8_t *)((uintptr_t)pbR3 & ~(uintptr_t)GUEST_PAGE_OFFSET_MASK);
    24082408
    24092409    iCacheIndex = ((GCPhys >> GUEST_PAGE_SHIFT) & PGM_MAX_PHYSCACHE_ENTRIES_MASK);
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