- Timestamp:
- Jul 5, 2009 3:20:41 PM (16 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/vboxmod.c
r21219 r21225 1358 1358 { 1359 1359 /* communicate result to VMM, align at 4MB */ 1360 req->hypervisorStart = ( VMMDEVHYPPTR32)(uintptr_t)RT_ALIGN_P(hypervisorArea, 0x400000);1360 req->hypervisorStart = (RTGCPTR32)(uintptr_t)RT_ALIGN_P(hypervisorArea, 0x400000); 1361 1361 req->header.requestType = VMMDevReq_SetHypervisorInfo; 1362 1362 req->header.rc = VERR_GENERAL_FAILURE; -
trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c
r18508 r21225 330 330 parms.pBuffer.type = VMMDevHGCMParmType_LinAddr_In; 331 331 parms.pBuffer.u.Pointer.size = len; 332 parms.pBuffer.u.Pointer.u.linearAddr = ( VMMDEVHYPPTR) buf;332 parms.pBuffer.u.Pointer.u.linearAddr = (uintptr_t) buf; 333 333 334 334 rc = crVBoxHGCMCall(&parms, sizeof(parms)); … … 353 353 parms.pBuffer.type = VMMDevHGCMParmType_LinAddr_Out; 354 354 parms.pBuffer.u.Pointer.size = conn->cbHostBufferAllocated; 355 parms.pBuffer.u.Pointer.u.linearAddr = ( VMMDEVHYPPTR) conn->pHostBuffer;355 parms.pBuffer.u.Pointer.u.linearAddr = (uintptr_t) conn->pHostBuffer; 356 356 357 357 parms.cbBuffer.type = VMMDevHGCMParmType_32bit; … … 397 397 parms.pBuffer.type = VMMDevHGCMParmType_LinAddr_In; 398 398 parms.pBuffer.u.Pointer.size = len; 399 parms.pBuffer.u.Pointer.u.linearAddr = ( VMMDEVHYPPTR) buf;400 } 401 /*else // @todo it fails badly, have to check why399 parms.pBuffer.u.Pointer.u.linearAddr = (uintptr_t) buf; 400 } 401 /*else ///@todo it fails badly, have to check why. bird: This fails because buf isn't a physical address? 402 402 { 403 403 parms.pBuffer.type = VMMDevHGCMParmType_PhysAddr; 404 404 parms.pBuffer.u.Pointer.size = len; 405 parms.pBuffer.u.Pointer.u.physAddr = ( VMMDEVHYPPHYS32) buf;405 parms.pBuffer.u.Pointer.u.physAddr = (uintptr_t) buf; 406 406 }*/ 407 407 … … 409 409 parms.pWriteback.type = VMMDevHGCMParmType_LinAddr_Out; 410 410 parms.pWriteback.u.Pointer.size = conn->cbHostBufferAllocated; 411 parms.pWriteback.u.Pointer.u.linearAddr = ( VMMDEVHYPPTR) conn->pHostBuffer;411 parms.pWriteback.u.Pointer.u.linearAddr = (uintptr_t) conn->pHostBuffer; 412 412 413 413 parms.cbWriteback.type = VMMDevHGCMParmType_32bit; … … 514 514 parms.pBuffer.type = VMMDevHGCMParmType_LinAddr_Out; 515 515 parms.pBuffer.u.Pointer.size = conn->cbHostBufferAllocated; 516 parms.pBuffer.u.Pointer.u.linearAddr = ( VMMDEVHYPPTR) conn->pHostBuffer;516 parms.pBuffer.u.Pointer.u.linearAddr = (uintptr_t) conn->pHostBuffer; 517 517 518 518 parms.cbBuffer.type = VMMDevHGCMParmType_32bit;
Note:
See TracChangeset
for help on using the changeset viewer.