VirtualBox

Changeset 18948 in vbox for trunk


Ignore:
Timestamp:
Apr 16, 2009 2:04:05 PM (16 years ago)
Author:
vboxsync
Message:

Wrong Mac fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMInternal.h

    r18945 r18948  
    34143414{
    34153415#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    3416     PVM     pVM = PGMCPU2VM(pPGM);
    34173416    PCX86PD pGuestPD = NULL;
    3418     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPD);
     3417    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPD);
    34193418    if (RT_FAILURE(rc))
    34203419    {
     
    34433442{
    34443443#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    3445     PVM     pVM = PGMCPU2VM(pPGM);
    34463444    PX86PD  pGuestPD = NULL;
    3447 
    3448     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPD);
     3445    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPD);
    34493446    AssertRCReturn(rc, NULL);
    34503447#else
     
    34683465{
    34693466#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    3470     PVM     pVM = PGMCPU2VM(pPGM);
    34713467    PX86PD  pGuestPD = NULL;
    3472 
    3473     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPD);
     3468    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPD);
    34743469    AssertRCReturn(rc, NULL);
    34753470#else
     
    34943489{
    34953490#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    3496     PVM      pVM = PGMCPU2VM(pPGM);
    34973491    PX86PDPT pGuestPDPT = NULL;
    3498 
    3499     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPDPT);
     3492    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPDPT);
    35003493    AssertRCReturn(rc, NULL);
    35013494#else
     
    35243517#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    35253518    PX86PDPT pGuestPDPT = 0;
    3526     PVM      pVM = PGMCPU2VM(pPGM);
    3527 
    3528     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPDPT);
     3519    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPDPT);
    35293520    AssertRCReturn(rc, 0);
    35303521#else
     
    35583549#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    35593550        PX86PDPAE   pGuestPD = NULL;
    3560         PVM         pVM = PGMCPU2VM(pPGM);
    3561 
    3562         int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
     3551        int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
    35633552        AssertRCReturn(rc, NULL);
    35643553#else
     
    35953584#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    35963585        PX86PDPAE   pGuestPD = NULL;
    3597         PVM         pVM = PGMCPU2VM(pPGM);
    3598 
    3599         int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
     3586        int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
    36003587        AssertRCReturn(rc, NULL);
    36013588#else
     
    36333620#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    36343621            PX86PDPAE   pGuestPD = NULL;
    3635             PVM         pVM = PGMCPU2VM(pPGM);
    3636 
    3637             int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
     3622            int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
    36383623            AssertRCReturn(rc, ZeroPde);
    36393624#else
     
    36753660#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    36763661        PX86PDPAE   pGuestPD = NULL;
    3677         PVM         pVM = PGMCPU2VM(pPGM);
    3678 
    3679         int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
     3662        int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pGuestPDPT->a[iPdpt].u & X86_PDPE_PG_MASK, (void **)&pGuestPD);
    36803663        AssertRCReturn(rc, NULL);
    36813664#else
     
    37043687#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    37053688    PX86PML4 pGuestPml4;
    3706     PVM      pVM = PGMCPU2VM(pPGM);
    3707 
    3708     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPml4);
     3689    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPml4);
    37093690    AssertRCReturn(rc, NULL);
    37103691#else
     
    37313712#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    37323713    PX86PML4 pGuestPml4;
    3733     PVM      pVM = PGMCPU2VM(pPGM);
    3734 
    3735     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPml4);
     3714    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPml4);
    37363715    AssertRCReturn(rc, NULL);
    37373716#else
     
    37583737#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    37593738    PX86PML4 pGuestPml4;
    3760     PVM      pVM = PGMCPU2VM(pPGM);
    3761 
    3762     int rc = pgmR0DynMapGCPageInlined(&pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPml4);
     3739    int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPml4);
    37633740    if (RT_FAILURE(rc))
    37643741    {
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