VirtualBox

Changeset 7606 in vbox for trunk/include


Ignore:
Timestamp:
Mar 27, 2008 8:02:20 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29106
Message:

Fixed PHYS_PAGE_ADDRESS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/param.h

    r7598 r7606  
    8484 *
    8585 * @returns Page aligned address (it's an uintptr_t).
    86  * @param   pv      The address to align.
     86 * @param   pv      The virtual address to align.
    8787 *
    8888 * @remarks Physical addresses are always masked using X86_PTE_PAE_PG_MASK!
     
    9696 *
    9797 * @returns Page aligned address (it's an RTHCPHYS or RTGCPHYS).
    98  * @param   pv      The address to align.
    99  *
     98 * @param   Phys    The physical address to align.
    10099 */
    101 #define PHYS_PAGE_ADDRESS(pv)    (pv & X86_PTE_PAE_PG_MASK)
     100#define PHYS_PAGE_ADDRESS(Phys) ((Phys) & X86_PTE_PAE_PG_MASK)
    102101
    103102/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette