VirtualBox

Changeset 89475 in vbox for trunk


Ignore:
Timestamp:
Jun 3, 2021 5:15:53 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144831
Message:

Intel IOMMU: bugref:9967 x86.h: Macros for getting page base and offset masks (for upcoming changes and will replace similar macros in AMD IOMMU code as well).

File:
1 edited

Legend:

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

    r88297 r89475  
    19701970#define X86_IS_CANONICAL(a_u64Addr)         ((uint64_t)(a_u64Addr) + UINT64_C(0x800000000000) < UINT64_C(0x1000000000000))
    19711971
     1972/**
     1973 * Gets the page base mask given the page shift.
     1974 */
     1975#define X86_GET_PAGE_BASE_MASK(a_cShift)    (UINT64_C(0xffffffffffffffff) << (a_cShift))
     1976
     1977/**
     1978 * Gets the page offset mask given the page shift.
     1979 */
     1980#define X86_GET_PAGE_OFFSET_MASK(a_cShift)  (~X86_GET_PAGE_BASE_MASK(a_cShift))
     1981
    19721982
    19731983/** @name Page Table Entry
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