VirtualBox

Changeset 73299 in vbox for trunk/src/VBox/Devices/Serial


Ignore:
Timestamp:
Jul 22, 2018 2:07:59 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123906
Message:

Serial: build fixes

Location:
trunk/src/VBox/Devices/Serial
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DevSerialNew.cpp

    r73259 r73299  
    209209        }
    210210        else
     211        {
     212            if (uVersion > UART_SAVED_STATE_VERSION_16450)
     213                enmType = UARTTYPE_16550A;
     214            else
     215                enmType = UARTTYPE_16450;
    211216            rc = uartR3LoadExec(&pThis->UartCore, pSSM, uVersion, uPass, &uIrq, &PortBase);
     217        }
    212218        if (RT_SUCCESS(rc))
    213219        {
  • trunk/src/VBox/Devices/Serial/DrvCharNew.cpp

    r73243 r73299  
    7575    /** Current position into the read buffer. */
    7676    uint8_t                     *pbBuf;
     77
     78#if HC_ARCH_BITS == 32
     79    /** Alignment. */
     80    uint32_t                    u32Alignment0;
     81#endif
    7782
    7883    /** Read/write statistics */
  • trunk/src/VBox/Devices/Serial/UartCore.cpp

    r73259 r73299  
    2424#define LOG_GROUP LOG_GROUP_DEV_SERIAL
    2525#include <VBox/vmm/tm.h>
     26#include <iprt/log.h>
    2627#include <iprt/uuid.h>
    2728#include <iprt/assert.h>
     
    646647        size_t cbRead = 0;
    647648        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);
    649650        UART_REG_SET(pThis->uRegLsr, UART_REG_LSR_DR);
    650651        uartIrqUpdate(pThis);
     
    13171318        size_t cbRead = 0;
    13181319        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);
    13201321        UART_REG_SET(pThis->uRegLsr, UART_REG_LSR_DR);
    13211322        uartIrqUpdate(pThis);
     
    14581459                               uint8_t *puIrq, RTIOPORT *pPortBase)
    14591460{
     1461    RT_NOREF(uPass);
    14601462    int rc = VINF_SUCCESS;
    14611463
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette