Changeset 4111 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Aug 10, 2007 12:35:04 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp
r4107 r4111 167 167 for (iParm = 0; iParm < pCallInfo->cParms; iParm++, pParm++) 168 168 { 169 if (pParm->type == VMMDevHGCMParmType_LinAddr_Locked_In) 170 pParm->type = VMMDevHGCMParmType_LinAddr_In; 171 else 172 if (pParm->type == VMMDevHGCMParmType_LinAddr_Locked_Out) 173 pParm->type = VMMDevHGCMParmType_LinAddr_Out; 174 else 175 if (pParm->type == VMMDevHGCMParmType_LinAddr_Locked) 176 pParm->type = VMMDevHGCMParmType_LinAddr; 177 else 169 178 if ( pParm->type == VMMDevHGCMParmType_LinAddr_In 170 179 || pParm->type == VMMDevHGCMParmType_LinAddr_Out -
trunk/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.cpp
r4071 r4111 53 53 // #define DUMPHEAP 54 54 55 #if def DUMPHEAP56 #define VBGL_PH_dprintf(a) AssertMsg2a55 #if 1 //def DUMPHEAP 56 #define VBGL_PH_dprintf(a) RTLogBackdoorPrintf a 57 57 #else 58 58 #define VBGL_PH_dprintf(a) … … 497 497 } 498 498 499 VBGL_PH_dprintf(("VbglPhysHeapGetPhysAddr %x -> %x\n", p, physAddr)); 500 499 501 return physAddr; 500 502 } -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.c
r4071 r4111 393 393 394 394 DECLVBGL(int) vboxCallRead(PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, 395 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer )395 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked) 396 396 { 397 397 int rc = VINF_SUCCESS; … … 410 410 data.cb.type = VMMDevHGCMParmType_32bit; 411 411 data.cb.u.value32 = *pcbBuffer; 412 data.buffer.type = VMMDevHGCMParmType_LinAddr_Out;412 data.buffer.type = (fLocked) ? VMMDevHGCMParmType_LinAddr_Locked_Out : VMMDevHGCMParmType_LinAddr_Out; 413 413 data.buffer.u.Pointer.size = *pcbBuffer; 414 414 data.buffer.u.Pointer.u.linearAddr = (VBOXGCPTR)pBuffer; … … 428 428 429 429 DECLVBGL(int) vboxCallWrite(PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, 430 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer )430 uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked) 431 431 { 432 432 int rc = VINF_SUCCESS; … … 445 445 data.cb.type = VMMDevHGCMParmType_32bit; 446 446 data.cb.u.value32 = *pcbBuffer; 447 data.buffer.type = VMMDevHGCMParmType_LinAddr_In;447 data.buffer.type = (fLocked) ? VMMDevHGCMParmType_LinAddr_Locked_In : VMMDevHGCMParmType_LinAddr_In; 448 448 data.buffer.u.Pointer.size = *pcbBuffer; 449 449 data.buffer.u.Pointer.u.linearAddr = (VBOXGCPTR)pBuffer; -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.h
r4071 r4111 130 130 DECLVBGL(int) vboxCallFlush (PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile); 131 131 132 DECLVBGL(int) vboxCallRead (PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer );133 DECLVBGL(int) vboxCallWrite (PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer );132 DECLVBGL(int) vboxCallRead (PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked); 133 DECLVBGL(int) vboxCallWrite (PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint32_t *pcbBuffer, uint8_t *pBuffer, bool fLocked); 134 134 135 135 DECLVBGL(int) vboxCallLock (PVBSFCLIENT pClient, PVBSFMAP pMap, SHFLHANDLE hFile, uint64_t offset, uint64_t cbSize, uint32_t fLock);
Note:
See TracChangeset
for help on using the changeset viewer.