VirtualBox

Changeset 73528 in vbox


Ignore:
Timestamp:
Aug 6, 2018 3:15:09 PM (6 years ago)
Author:
vboxsync
Message:

Devices/Serial/UartCore: Fix adjusting the amount of available bytes to read when the FIFO is enabled while there is something in the RBR register

File:
1 edited

Legend:

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

    r73331 r73528  
    851851             */
    852852            if (   ASMAtomicReadU32(&pThis->cbAvailRdr) > 0
    853                 && (pThis->uRegFcr & UART_REG_FCR_FIFO_EN))
     853                && (uVal & UART_REG_FCR_FIFO_EN))
    854854                ASMAtomicDecU32(&pThis->cbAvailRdr);
    855855
     
    13561356
    13571357    uint32_t cbAvailOld = ASMAtomicAddU32(&pThis->cbAvailRdr, (uint32_t)cbAvail);
    1358     LogFlow(("    cbAvailRdr=%zu -> cbAvailRdr=%zu\n", cbAvailOld, cbAvail + cbAvailOld));
     1358    LogFlow(("    cbAvailRdr=%u -> cbAvailRdr=%u\n", cbAvailOld, cbAvail + cbAvailOld));
    13591359    PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED);
    13601360    if (pThis->uRegFcr & UART_REG_FCR_FIFO_EN)
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