VirtualBox

Changeset 3166 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Jun 19, 2007 9:13:54 PM (18 years ago)
Author:
vboxsync
Message:

use some PDM helper functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r2981 r3166  
    204204        RTHCPTR HCPtr;
    205205       
    206         rc = pDevIns->pDevHlp->pfnPhysGCPtr2HCPtr (pDevIns, GCPtr, &HCPtr);
    207 //        rc = PGMPhysGCPtr2HCPtr (pVM, GCPtr, &HCPtr);
     206        rc = PDMDevHlpPhysGCPtr2HCPtr(pDevIns, GCPtr, &HCPtr);
    208207       
    209208        Log(("vmmdevHGCMSaveLinPtr: Page %d: %VGv -> %p. %Vrc\n", iPage, GCPtr, HCPtr, rc));
     
    482481                     pHostParm->u.pointer.size = size;
    483482
    484                      rc = pVMMDevState->pDevIns->pDevHlp->pfnPhys2HCVirt (pVMMDevState->pDevIns, physAddr,
    485                                                                           size, &pHostParm->u.pointer.addr);
     483                     rc = PDMDevHlpPhys2HCVirt (pVMMDevState->pDevIns, physAddr, size, &pHostParm->u.pointer.addr);
    486484
    487485                     Log(("vmmdevHGCMCall: PhysAddr guest parameter %VGp\n", physAddr));
     
    510508                         /* Don't overdo it */
    511509                         if (pGuestParm->type != VMMDevHGCMParmType_LinAddr_Out)
    512                          {
    513                              rc = pVMMDevState->pDevIns->pDevHlp->pfnPhysReadGCVirt (pVMMDevState->pDevIns, pcBuf,
    514                                                                                      linearAddr, size);
    515                          }
     510                             rc = PDMDevHlpPhysReadGCVirt(pVMMDevState->pDevIns, pcBuf, linearAddr, size);
    516511                         else
    517512                             rc = VINF_SUCCESS;
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