Changeset 29613 in vbox
- Timestamp:
- May 18, 2010 11:40:07 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/VBox/gmm.h (modified) (1 diff)
-
src/VBox/VMM/GMM.cpp (modified) (1 diff)
-
src/VBox/VMM/VMMR0/GMMR0.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/gmm.h
r29567 r29613 486 486 /** Guest OS type. */ 487 487 VBOXOSFAMILY enmGuestOS; 488 /** Alignment. */489 uint32_t u32Alignment;488 /** return code. */ 489 uint32_t rc; 490 490 /** Module name */ 491 491 char szName[GMM_SHARED_MODULE_MAX_NAME_STRING]; -
trunk/src/VBox/VMM/GMM.cpp
r29424 r29613 385 385 pReq->Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC; 386 386 pReq->Hdr.cbReq = RT_OFFSETOF(GMMREGISTERSHAREDMODULEREQ, aRegions[pReq->cRegions]); 387 return VMMR3CallR0(pVM, VMMR0_DO_GMM_REGISTER_SHARED_MODULE, 0, &pReq->Hdr); 387 int rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_REGISTER_SHARED_MODULE, 0, &pReq->Hdr); 388 if (rc == VINF_SUCCESS) 389 rc = pReq->rc; 390 return rc; 388 391 } 389 392 -
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r29605 r29613 3621 3621 AssertMsgReturn(pReq->Hdr.cbReq >= sizeof(*pReq) && pReq->Hdr.cbReq == RT_UOFFSETOF(GMMREGISTERSHAREDMODULEREQ, aRegions[pReq->cRegions]), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER); 3622 3622 3623 return GMMR0RegisterSharedModule(pVM, idCpu, pReq->enmGuestOS, pReq->szName, pReq->szVersion, pReq->GCBaseAddr, pReq->cbModule, pReq->cRegions, pReq->aRegions); 3623 /* Pass back return code in the request packet to preserve informational codes. (VMMR3CallR0 chokes on them) */ 3624 pReq->rc = GMMR0RegisterSharedModule(pVM, idCpu, pReq->enmGuestOS, pReq->szName, pReq->szVersion, pReq->GCBaseAddr, pReq->cbModule, pReq->cRegions, pReq->aRegions); 3625 return VINF_SUCCESS; 3624 3626 } 3625 3627
Note:
See TracChangeset
for help on using the changeset viewer.

