- Timestamp:
- Apr 16, 2009 2:04:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMInternal.h
r18945 r18948 3414 3414 { 3415 3415 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3416 PVM pVM = PGMCPU2VM(pPGM);3417 3416 PCX86PD pGuestPD = NULL; 3418 int rc = pgmR0DynMapGCPageInlined( &pVM->pgm.s, pPGM->GCPhysCR3, (void **)&pGuestPD);3417 int rc = pgmR0DynMapGCPageInlined(PGMCPU2PGM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPD); 3419 3418 if (RT_FAILURE(rc)) 3420 3419 { … … 3443 3442 { 3444 3443 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3445 PVM pVM = PGMCPU2VM(pPGM);3446 3444 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); 3449 3446 AssertRCReturn(rc, NULL); 3450 3447 #else … … 3468 3465 { 3469 3466 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3470 PVM pVM = PGMCPU2VM(pPGM);3471 3467 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); 3474 3469 AssertRCReturn(rc, NULL); 3475 3470 #else … … 3494 3489 { 3495 3490 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3496 PVM pVM = PGMCPU2VM(pPGM);3497 3491 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); 3500 3493 AssertRCReturn(rc, NULL); 3501 3494 #else … … 3524 3517 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3525 3518 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); 3529 3520 AssertRCReturn(rc, 0); 3530 3521 #else … … 3558 3549 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3559 3550 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); 3563 3552 AssertRCReturn(rc, NULL); 3564 3553 #else … … 3595 3584 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3596 3585 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); 3600 3587 AssertRCReturn(rc, NULL); 3601 3588 #else … … 3633 3620 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3634 3621 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); 3638 3623 AssertRCReturn(rc, ZeroPde); 3639 3624 #else … … 3675 3660 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3676 3661 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); 3680 3663 AssertRCReturn(rc, NULL); 3681 3664 #else … … 3704 3687 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3705 3688 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); 3709 3690 AssertRCReturn(rc, NULL); 3710 3691 #else … … 3731 3712 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3732 3713 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); 3736 3715 AssertRCReturn(rc, NULL); 3737 3716 #else … … 3758 3737 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 3759 3738 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); 3763 3740 if (RT_FAILURE(rc)) 3764 3741 {
Note:
See TracChangeset
for help on using the changeset viewer.