VirtualBox

Ignore:
Timestamp:
Jul 19, 2018 3:08:34 PM (6 years ago)
Author:
vboxsync
Message:

Devices/Serial: Add missing implementation for character timeout indication when the FIFO is enabled, add 16750 implementation which provides 64byte FIFOs, additional number of bug fixes

File:
1 edited

Legend:

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

    r72117 r73243  
    231231                    AssertRC(rc);
    232232
    233                     ASMAtomicSubZ(&pThis->cbAvailWr, cbFetched);
    234                     pThis->cbTxUsed += cbFetched;
     233                    if (cbFetched > 0)
     234                    {
     235                        ASMAtomicSubZ(&pThis->cbAvailWr, cbFetched);
     236                        pThis->cbTxUsed += cbFetched;
     237                    }
     238                    else
     239                    {
     240                        /* The guest reset the send queue and there is no data available anymore. */
     241                        pThis->cbAvailWr = 0;
     242                    }
    235243                }
    236244
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