Changes between Version 1 and Version 2 of Ticket #18668, comment 15
- Timestamp:
- Dec 6, 2021 10:09:01 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18668, comment 15
v1 v2 32 32 if (rc == VINF_SUCCESS) 33 33 { 34 *puVal = pThis->uRegRbr;35 36 34 /* Reset the Break bit. */ 37 35 UART_REG_CLR(pThis->uRegLsr, UART_REG_LSR_BI); … … 44 42 if (ASMAtomicReadU32(&pThis->cbAvailRdr) > 0) 45 43 { 44 *puVal = pThis->uRegRbr; 46 45 Assert(pThis->cbAvailRdr); 47 46 uint32_t cbAvail = ASMAtomicDecU32(&pThis->cbAvailRdr); … … 58 57 } 59 58 } 59 else 60 { 61 /* 62 * This voids a rare situation where the RBR record is read 63 * and new data arrives at the same time. 64 */ 65 *puVal = pThis->uRegRbr; 66 } 60 67 } 61 68 }