VirtualBox

Changeset 5265 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2007 5:00:31 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25258
Message:

Be careful with PAGE_ADDRESS, it only works for pointers in the current context!

File:
1 edited

Legend:

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

    r4071 r5265  
    2626 */
    2727
    28 /* Undefine PAGE_SIZE and PAGE_SHIFT to avoid unnecessary noice when clashing 
    29    with system headers. Include system headers before / after iprt depending 
     28/* Undefine PAGE_SIZE and PAGE_SHIFT to avoid unnecessary noice when clashing
     29   with system headers. Include system headers before / after iprt depending
    3030   on which you wish to take precedence. */
    3131#undef PAGE_SIZE
     
    7777 * @param   pv      The address to align.
    7878 *
    79  * @remark  Physical addresses are always masked using X86_PTE_PAE_PG_MASK!
     79 * @remarks Physical addresses are always masked using X86_PTE_PAE_PG_MASK!
     80 * @remarks This only works with POINTERS in the current context.
     81 *          Do NOT use on guest address or physical address!
    8082 */
    8183#define PAGE_ADDRESS(pv)    ((uintptr_t)(pv) & ~(uintptr_t)0xfff)
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