VirtualBox

Changeset 13923 in vbox


Ignore:
Timestamp:
Nov 6, 2008 3:01:24 PM (16 years ago)
Author:
vboxsync
Message:

PGM: darwin fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r13919 r13923  
    10101010         * Check if the modified PDEs are present and mappings.
    10111011         */
    1012         const RTGCUINTPTR offPD = GCPhysFault & PAGE_OFFSET_MASK;
     1012        const RTGCUINTPTR   offPD = GCPhysFault & PAGE_OFFSET_MASK;
    10131013        const unsigned      iPD1  = offPD / sizeof(X86PDE);
    10141014        const unsigned      iPD2  = (offPD + cb - 1) / sizeof(X86PDE);
    10151015
    10161016        Assert(cb > 0 && cb <= 8);
    1017         Assert(iPD1 < RT_ELEMENTS(pVM->pgm.s.CTX_SUFF(pGuestPD)->a)); /// @todo R3/R0 separation.
    1018         Assert(iPD2 < RT_ELEMENTS(pVM->pgm.s.CTX_SUFF(pGuestPD)->a));
     1017        Assert(iPD1 < X86_PG_ENTRIES);
     1018        Assert(iPD2 < X86_PG_ENTRIES);
    10191019
    10201020#ifdef DEBUG
     
    10261026        if (!pVM->pgm.s.fMappingsFixed)
    10271027        {
    1028             PX86PD pPDSrc = pVM->pgm.s.CTX_SUFF(pGuestPD);
     1028            PX86PD pPDSrc = pgmGstGet32bitPDPtr(&pVM->pgm.s);
    10291029            if (    (   pPDSrc->a[iPD1].n.u1Present
    10301030                     && pgmGetMapping(pVM, (RTGCPTR)(iPD1 << X86_PD_SHIFT)) )
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