VirtualBox

Changeset 14676 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Nov 27, 2008 12:43:06 AM (16 years ago)
Author:
vboxsync
Message:

PGMInternal: Fixed a bunch bad PGMDynMapGCPage calls on darwin (cut & past).

File:
1 edited

Legend:

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

    r14541 r14676  
    34233423#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    34243424    PCX86PD pGuestPD = 0;
    3425     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPD);
     3425    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPD);
    34263426    if (RT_FAILURE(rc))
    34273427    {
     
    34473447#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    34483448    PX86PD pGuestPD = 0;
    3449     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPD);
     3449    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPD);
    34503450    AssertRCReturn(rc, 0);
    34513451    return &pGuestPD->a[GCPtr >> X86_PD_SHIFT];
     
    34663466#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    34673467    PX86PD pGuestPD = 0;
    3468     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPD);
     3468    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPD);
    34693469    AssertRCReturn(rc, 0);
    34703470    return pGuestPD;
     
    34863486#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    34873487    PX86PDPT pGuestPDPT = 0;
    3488     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPDPT);
     3488    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPDPT);
    34893489    AssertRCReturn(rc, 0);
    34903490    return pGuestPDPT;
     
    35093509#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    35103510    PX86PDPT pGuestPDPT = 0;
    3511     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPDPT);
     3511    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPDPT);
    35123512    AssertRCReturn(rc, 0);
    35133513    return &pGuestPDPT->a[(GCPtr >> X86_PDPT_SHIFT) & X86_PDPT_MASK_PAE];
     
    36973697#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    36983698    PX86PML4 pGuestPml4;
    3699     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPml4);
     3699    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPml4);
    37003700    AssertRCReturn(rc, NULL);
    37013701    return pGuestPml4;
     
    37183718#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    37193719    PX86PML4 pGuestPml4;
    3720     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPml4);
     3720    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPml4);
    37213721    AssertRCReturn(rc, NULL);
    37223722    return &pGuestPml4->a[iPml4];
     
    37393739#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    37403740    PX86PML4 pGuestPml4;
    3741     int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)pGuestPml4);
     3741    int rc = PGMDynMapGCPage(PGM2VM(pPGM), pPGM->GCPhysCR3, (void **)&pGuestPml4);
    37423742    if (RT_FAILURE(rc))
    37433743    {
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