Changeset 81803 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Nov 12, 2019 2:34:35 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevBusLogic.cpp
r81800 r81803 479 479 volatile bool fBiosReqPending; 480 480 481 /** The support driver session handle. */482 R3R0PTRTYPE(PSUPDRVSESSION) pSupDrvSession;483 481 /** Worker thread. */ 484 482 R3PTRTYPE(PPDMTHREAD) pThreadWrk; … … 3450 3448 PBUSLOGIC pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC); 3451 3449 3452 int rc = SUPSemEventSignal(pThis->pSupDrvSession, pThis->hEvtProcess);3450 int rc = PDMDevHlpSUPSemEventSignal(pDevIns, pThis->hEvtProcess); 3453 3451 AssertRC(rc); 3454 3452 … … 3783 3781 { 3784 3782 Assert(ASMAtomicReadBool(&pThis->fWrkThreadSleeping)); 3785 rc = SUPSemEventWaitNoResume(pThis->pSupDrvSession, pThis->hEvtProcess, RT_INDEFINITE_WAIT);3783 rc = PDMDevHlpSUPSemEventWaitNoResume(pDevIns, pThis->hEvtProcess, RT_INDEFINITE_WAIT); 3786 3784 AssertLogRelMsgReturn(RT_SUCCESS(rc) || rc == VERR_INTERRUPTED, ("%Rrc\n", rc), rc); 3787 3785 if (RT_UNLIKELY(pThread->enmState != PDMTHREADSTATE_RUNNING)) … … 3828 3826 RT_NOREF(pThread); 3829 3827 PBUSLOGIC pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC); 3830 return SUPSemEventSignal(pThis->pSupDrvSession, pThis->hEvtProcess);3828 return PDMDevHlpSUPSemEventSignal(pDevIns, pThis->hEvtProcess); 3831 3829 } 3832 3830 … … 4201 4199 if (pThis->hEvtProcess != NIL_SUPSEMEVENT) 4202 4200 { 4203 SUPSemEventClose(pThis->pSupDrvSession, pThis->hEvtProcess);4201 PDMDevHlpSUPSemEventClose(pDevIns, pThis->hEvtProcess); 4204 4202 pThis->hEvtProcess = NIL_SUPSEMEVENT; 4205 4203 } … … 4216 4214 PBUSLOGIC pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC); 4217 4215 PCPDMDEVHLPR3 pHlp = pDevIns->pHlpR3; 4218 int rc = VINF_SUCCESS;4219 char szCfgStr[16];4220 4216 4221 4217 /* … … 4254 4250 4255 4251 bool fBootable = true; 4256 rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "Bootable", &fBootable, true);4252 int rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "Bootable", &fBootable, true); 4257 4253 if (RT_FAILURE(rc)) 4258 4254 return PDMDEV_SET_ERROR(pDevIns, rc, N_("BusLogic configuration error: failed to read Bootable as boolean")); … … 4260 4256 4261 4257 /* Figure out the emulated device type. */ 4258 char szCfgStr[16]; 4262 4259 rc = pHlp->pfnCFGMQueryStringDef(pCfg, "AdapterType", szCfgStr, sizeof(szCfgStr), "BT-958D"); 4263 4260 if (RT_FAILURE(rc)) … … 4354 4351 * Create event semaphore and worker thread. 4355 4352 */ 4356 rc = SUPSemEventCreate(pThis->pSupDrvSession, &pThis->hEvtProcess);4353 rc = PDMDevHlpSUPSemEventCreate(pDevIns, &pThis->hEvtProcess); 4357 4354 if (RT_FAILURE(rc)) 4358 4355 return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
Note:
See TracChangeset
for help on using the changeset viewer.