Changeset 3466 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jul 5, 2007 1:23:14 PM (18 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp
r3307 r3466 179 179 These kind of problems actually applies to some patched linux kernels too, including older 180 180 fedora releases. (The patch is the infamous 4G/4G patch, aka 4g4g, by Ingo Molnar.) */ 181 rc = vbglLockLinear (&apvCtx[iParm], (void *)pParm->u.Pointer.u.linearAddr, pParm->u.Pointer.size );181 rc = vbglLockLinear (&apvCtx[iParm], (void *)pParm->u.Pointer.u.linearAddr, pParm->u.Pointer.size, (pParm->type == VMMDevHGCMParmType_LinAddr_In) ? false : true /* write access */); 182 182 183 183 if (VBOX_FAILURE (rc)) -
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
r3306 r3466 32 32 33 33 34 int vbglLockLinear (void **ppvCtx, void *pv, uint32_t u32Size )34 int vbglLockLinear (void **ppvCtx, void *pv, uint32_t u32Size, bool fWriteAccess) 35 35 { 36 36 int rc = VINF_SUCCESS; … … 49 49 MmProbeAndLockPages (pMdl, 50 50 KernelMode, 51 IoModifyAccess);51 (fWriteAccess) ? IoModifyAccess : IoReadAccess); 52 52 53 53 *ppvCtx = pMdl; -
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h
r3306 r3466 61 61 } VBGLDRIVER; 62 62 63 int vbglLockLinear (void **ppvCtx, void *pv, uint32_t u32Size );63 int vbglLockLinear (void **ppvCtx, void *pv, uint32_t u32Size, bool fWriteAccess); 64 64 void vbglUnlockLinear (void *pvCtx, void *pv, uint32_t u32Size); 65 65
Note:
See TracChangeset
for help on using the changeset viewer.