VirtualBox

Changeset 7719 in vbox


Ignore:
Timestamp:
Apr 3, 2008 12:03:36 PM (17 years ago)
Author:
vboxsync
Message:

pgmGstGetPaePDPtr.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CFGM.cpp

    r6475 r7719  
    773773    rc = CFGMR3InsertBytes(pCfg,    "UUID", &Uuid, sizeof(Uuid));
    774774    UPDATERC();
    775     /* Bios logo. */
    776     rc = CFGMR3InsertInteger(pCfg,  "FadeIn",               1);
    777     UPDATERC();
    778     rc = CFGMR3InsertInteger(pCfg,  "FadeOut",              1);
    779     UPDATERC();
    780     rc = CFGMR3InsertInteger(pCfg,  "LogoTime",             0);
    781     UPDATERC();
    782     rc = CFGMR3InsertString(pCfg,   "LogoFile",             "");
    783     UPDATERC();
    784775
    785776    /*
     
    886877    rc = CFGMR3InsertInteger(pCfg,  "VRamSize",             4 * _1M);
    887878    UPDATERC();
     879
     880    /* Bios logo. */
     881    rc = CFGMR3InsertInteger(pCfg,  "FadeIn",               1);
     882    UPDATERC();
     883    rc = CFGMR3InsertInteger(pCfg,  "FadeOut",              1);
     884    UPDATERC();
     885    rc = CFGMR3InsertInteger(pCfg,  "LogoTime",             0);
     886    UPDATERC();
     887    rc = CFGMR3InsertString(pCfg,   "LogoFile",             "");
     888    UPDATERC();
     889
    888890#if 0
    889891    rc = CFGMR3InsertNode(pInst,    "LUN#0", &pLunL0);
  • trunk/src/VBox/VMM/PGMInternal.h

    r7715 r7719  
    918918#if GC_ARCH_BITS == 32
    919919    /** Pointer alignment. */
    920     RTGCPTR                             GCPtrAlignment; 
     920    RTGCPTR                             GCPtrAlignment;
    921921#endif
    922922    /** Start of the range. Page aligned. */
     
    32683268
    32693269/**
    3270  * Gets the page directory for the specified address and returns the index into the page directory
     3270 * Gets the page directory pointer table entry for the specified address
     3271 * and returns the index into the page directory
    32713272 *
    32723273 * @returns Pointer to the page directory in question.
     
    32763277 * @param   piPD        Receives the index into the returned page directory
    32773278 */
    3278 DECLINLINE(PX86PDPAE) pgmGstGetPaePDPt(PPGM pPGM, RTGCUINTPTR GCPtr, unsigned *piPD)
     3279DECLINLINE(PX86PDPAE) pgmGstGetPaePDPtr(PPGM pPGM, RTGCUINTPTR GCPtr, unsigned *piPD)
    32793280{
    32803281    const unsigned iPdPt = GCPtr >> X86_PDPT_SHIFT;
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r7718 r7719  
    9494#  else /* PAE */
    9595    unsigned        iPDSrc;
    96     PGSTPD          pPDSrc = pgmGstGetPaePDPt(&pVM->pgm.s, (RTGCUINTPTR)pvFault, &iPDSrc);
     96    PGSTPD          pPDSrc = pgmGstGetPaePDPtr(&pVM->pgm.s, (RTGCUINTPTR)pvFault, &iPDSrc);
    9797#  endif
    9898# else
     
    523523
    524524            /* Check to see if we need to emulate the instruction as X86_CR0_WP has been cleared. */
    525             if (    CPUMGetGuestCPL(pVM, pRegFrame) == 0               
     525            if (    CPUMGetGuestCPL(pVM, pRegFrame) == 0
    526526                &&  ((CPUMGetGuestCR0(pVM) & (X86_CR0_WP|X86_CR0_PG)) == X86_CR0_PG)
    527527                &&  (uErr & X86_TRAP_PF_RW))
     
    822822#  else /* PAE */
    823823    unsigned        iPDSrc;
    824     PX86PDPAE       pPDSrc      = pgmGstGetPaePDPt(&pVM->pgm.s, GCPtrPage, &iPDSrc);
     824    PX86PDPAE       pPDSrc      = pgmGstGetPaePDPtr(&pVM->pgm.s, GCPtrPage, &iPDSrc);
    825825    GSTPDE          PdeSrc      = pPDSrc->a[iPDSrc];
    826826#  endif
     
    23052305#  else /* PAE */
    23062306    unsigned        iPDSrc;
    2307     PGSTPD          pPDSrc = pgmGstGetPaePDPt(&pVM->pgm.s, GCPtrPage, &iPDSrc);
     2307    PGSTPD          pPDSrc = pgmGstGetPaePDPtr(&pVM->pgm.s, GCPtrPage, &iPDSrc);
    23082308#  endif
    23092309    const GSTPDE    PdeSrc = pPDSrc->a[iPDSrc];
     
    23952395#  else /* PAE */
    23962396    unsigned        iPDSrc;
    2397     PGSTPD          pPDSrc = pgmGstGetPaePDPt(&pVM->pgm.s, GCPtrPage, &iPDSrc);
     2397    PGSTPD          pPDSrc = pgmGstGetPaePDPtr(&pVM->pgm.s, GCPtrPage, &iPDSrc);
    23982398#  endif
    23992399# else
     
    26092609#   endif
    26102610        PX86PDEPAE      pPDEDst   = &pPDPAE->a[0];
    2611         PGSTPD          pPDSrc    = pgmGstGetPaePDPt(&pVM->pgm.s, iPDPTE << X86_PDPT_SHIFT, &iPDSrc);
     2611        PGSTPD          pPDSrc    = pgmGstGetPaePDPtr(&pVM->pgm.s, iPDPTE << X86_PDPT_SHIFT, &iPDSrc);
    26122612
    26132613        if (pPDSrc == NULL)
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