Changeset 73299 in vbox for trunk/src/VBox/Devices/Serial
- Timestamp:
- Jul 22, 2018 2:07:59 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123906
- Location:
- trunk/src/VBox/Devices/Serial
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DevSerialNew.cpp
r73259 r73299 209 209 } 210 210 else 211 { 212 if (uVersion > UART_SAVED_STATE_VERSION_16450) 213 enmType = UARTTYPE_16550A; 214 else 215 enmType = UARTTYPE_16450; 211 216 rc = uartR3LoadExec(&pThis->UartCore, pSSM, uVersion, uPass, &uIrq, &PortBase); 217 } 212 218 if (RT_SUCCESS(rc)) 213 219 { -
trunk/src/VBox/Devices/Serial/DrvCharNew.cpp
r73243 r73299 75 75 /** Current position into the read buffer. */ 76 76 uint8_t *pbBuf; 77 78 #if HC_ARCH_BITS == 32 79 /** Alignment. */ 80 uint32_t u32Alignment0; 81 #endif 77 82 78 83 /** Read/write statistics */ -
trunk/src/VBox/Devices/Serial/UartCore.cpp
r73259 r73299 24 24 #define LOG_GROUP LOG_GROUP_DEV_SERIAL 25 25 #include <VBox/vmm/tm.h> 26 #include <iprt/log.h> 26 27 #include <iprt/uuid.h> 27 28 #include <iprt/assert.h> … … 646 647 size_t cbRead = 0; 647 648 int rc2 = pThis->pDrvSerial->pfnReadRdr(pThis->pDrvSerial, &pThis->uRegRbr, 1, &cbRead); 648 AssertMsg(RT_SUCCESS(rc2) && cbRead == 1, ("This shouldn't fail and always return one byte!\n")); 649 AssertMsg(RT_SUCCESS(rc2) && cbRead == 1, ("This shouldn't fail and always return one byte!\n")); RT_NOREF(rc2); 649 650 UART_REG_SET(pThis->uRegLsr, UART_REG_LSR_DR); 650 651 uartIrqUpdate(pThis); … … 1317 1318 size_t cbRead = 0; 1318 1319 int rc = pThis->pDrvSerial->pfnReadRdr(pThis->pDrvSerial, &pThis->uRegRbr, 1, &cbRead); 1319 AssertMsg(RT_SUCCESS(rc) && cbRead == 1, ("This shouldn't fail and always return one byte!\n")); 1320 AssertMsg(RT_SUCCESS(rc) && cbRead == 1, ("This shouldn't fail and always return one byte!\n")); RT_NOREF(rc); 1320 1321 UART_REG_SET(pThis->uRegLsr, UART_REG_LSR_DR); 1321 1322 uartIrqUpdate(pThis); … … 1458 1459 uint8_t *puIrq, RTIOPORT *pPortBase) 1459 1460 { 1461 RT_NOREF(uPass); 1460 1462 int rc = VINF_SUCCESS; 1461 1463
Note:
See TracChangeset
for help on using the changeset viewer.