Changeset 84281 in vbox
- Timestamp:
- May 13, 2020 10:55:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/UartCore.cpp
r82968 r84281 1501 1501 RT_NOREF(pTimer); 1502 1502 1503 PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_IGNORED); /** @todo r=bird: You already own this crit sect, don't you?!? */ 1503 VBOXSTRICTRC rc1 = PDMDevHlpTimerLockClock2(pDevIns, pThis->hTimerRcvFifoTimeout, &pThis->CritSect, 1504 VINF_SUCCESS /* must get it */); 1505 AssertRCReturnVoid(VBOXSTRICTRC_VAL(rc1)); 1504 1506 1505 1507 if (pThis->FifoRecv.cbUsed < pThis->FifoRecv.cbItl) … … 1509 1511 } 1510 1512 1511 PDMDevHlp CritSectLeave(pDevIns, &pThis->CritSect);1513 PDMDevHlpTimerUnlockClock2(pDevIns, pThis->hTimerRcvFifoTimeout, &pThis->CritSect); 1512 1514 } 1513 1515 … … 1522 1524 RT_NOREF(pTimer); 1523 1525 1524 PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_IGNORED); /** @todo r=bird: You already own this crit sect, don't you?!? */ 1526 VBOXSTRICTRC rc1 = PDMDevHlpTimerLockClock2(pDevIns, pThis->hTimerTxUnconnected, &pThis->CritSect, 1527 VINF_SUCCESS /* must get it */); 1528 AssertRCReturnVoid(VBOXSTRICTRC_VAL(rc1)); 1525 1529 1526 1530 uint8_t bVal = 0; … … 1570 1574 } 1571 1575 1572 PDMDevHlp CritSectLeave(pDevIns, &pThis->CritSect);1576 PDMDevHlpTimerUnlockClock2(pDevIns, pThis->hTimerTxUnconnected, &pThis->CritSect); 1573 1577 } 1574 1578 … … 2056 2060 * Create the receive FIFO character timeout indicator timer. 2057 2061 */ 2058 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL , uartR3RcvFifoTimeoutTimer, pThisCC,2062 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, uartR3RcvFifoTimeoutTimer, pThisCC, 2059 2063 TMTIMER_FLAGS_NO_CRIT_SECT, "UART Rcv FIFO Timer", 2060 2064 &pThis->hTimerRcvFifoTimeout); 2061 2065 AssertRCReturn(rc, rc); 2062 2066 2063 rc = PDMDevHlpTimerSetCritSect(pDevIns, pThis->hTimerRcvFifoTimeout, &pThis->CritSect);2064 AssertRCReturn(rc, rc);2065 2066 2067 /* 2067 2068 * Create the transmit timer when no device is connected. 2068 2069 */ 2069 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL , uartR3TxUnconnectedTimer, pThisCC,2070 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_VIRTUAL_SYNC, uartR3TxUnconnectedTimer, pThisCC, 2070 2071 TMTIMER_FLAGS_NO_CRIT_SECT, "UART TX uncon. Timer", 2071 2072 &pThis->hTimerTxUnconnected); 2072 AssertRCReturn(rc, rc);2073 2074 rc = PDMDevHlpTimerSetCritSect(pDevIns, pThis->hTimerTxUnconnected, &pThis->CritSect);2075 2073 AssertRCReturn(rc, rc); 2076 2074
Note:
See TracChangeset
for help on using the changeset viewer.