VirtualBox

Changeset 9701 in vbox


Ignore:
Timestamp:
Jun 16, 2008 8:57:21 AM (16 years ago)
Author:
vboxsync
Message:

Fixed mask issues in 64 bits mode

Location:
trunk
Files:
2 edited

Legend:

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

    r9656 r9701  
    920920#if 1 /* we're using this internally and have to mask of the top 16-bit. */
    921921#define X86_PTE_PAE_PG_MASK                 ( 0x0000fffffffff000ULL )
     922/** @todo Get rid of the above hack; makes code unreadable. */
     923#define X86_PTE_PAE_PG_MASK_FULL            ( 0x000ffffffffff000ULL )
    922924#else
    923925#define X86_PTE_PAE_PG_MASK                 ( 0x000ffffffffff000ULL )
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r9606 r9701  
    9090#  define GST_PDPT_SHIFT            X86_PDPT_SHIFT
    9191#  define GST_PDPT_MASK             X86_PDPT_MASK_PAE
     92#  define GST_PTE_PG_MASK           X86_PTE_PAE_PG_MASK
    9293# else
    9394#  define GST_TOTAL_PD_ENTRIES      (X86_PG_AMD64_ENTRIES * X86_PG_AMD64_PDPE_ENTRIES)
     
    9596#  define GST_PDPT_SHIFT            X86_PDPT_SHIFT
    9697#  define GST_PDPT_MASK             X86_PDPT_MASK_AMD64
    97 # endif
    98 # define GST_PTE_PG_MASK            X86_PTE_PAE_PG_MASK
     98#  define GST_PTE_PG_MASK           X86_PTE_PAE_PG_MASK_FULL
     99# endif
    99100# define GST_PT_SHIFT               X86_PT_PAE_SHIFT
    100101# define GST_PT_MASK                X86_PT_PAE_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