Changeset 84908 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 22, 2020 2:49:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/UartCore.cpp
r84907 r84908 1599 1599 size_t cbRead = 0; 1600 1600 int rc = pThisCC->pDrvSerial->pfnReadRdr(pThisCC->pDrvSerial, &pThis->uRegRbr, 1, &cbRead); 1601 AssertMsg(RT_SUCCESS(rc) && cbRead == 1, ("This shouldn't fail and always return one byte!\n")); RT_NOREF(rc); 1602 UART_REG_SET(pThis->uRegLsr, UART_REG_LSR_DR); 1603 uartIrqUpdate(pDevIns, pThis, pThisCC); 1601 AssertRC(rc); 1602 1603 if (cbRead) 1604 { 1605 UART_REG_SET(pThis->uRegLsr, UART_REG_LSR_DR); 1606 uartIrqUpdate(pDevIns, pThis, pThisCC); 1607 } 1604 1608 } 1605 1609 PDMDevHlpCritSectLeave(pDevIns, &pThis->CritSect);
Note:
See TracChangeset
for help on using the changeset viewer.