VirtualBox

Changeset 70097 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 12, 2017 7:45:51 PM (7 years ago)
Author:
vboxsync
Message:

Devices/Serial: Update the parameters of the driver below upon reset to stay in sync, fix value of LCR register during reset to really get 8 data bits as stated in the comment

File:
1 edited

Legend:

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

    r69500 r70097  
    11151115    pThis->ier = 0;
    11161116    pThis->iir = UART_IIR_NO_INT;
    1117     pThis->lcr = 0;
     1117    pThis->lcr = 3; /* 8 data bits, no parity, 1 stop bit */
    11181118    pThis->lsr = UART_LSR_TEMT | UART_LSR_THRE;
    11191119    pThis->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS;
     
    11261126    pThis->char_transmit_time = (tf / 9600) * 10;
    11271127    serial_tsr_retry_update_parameters(pThis, tf);
     1128
     1129    /* Update parameters of the underlying driver to stay in sync. */
     1130    serial_update_parameters(pThis);
    11281131
    11291132    fifo_clear(pThis, RECV_FIFO);
     
    13101313    pThis->transmit_timerRC = TMTimerRCPtr(pThis->transmit_timerR3);
    13111314
    1312     serialReset(pDevIns);
    1313 
    13141315#ifdef VBOX_SERIAL_PCI
    13151316    /*
     
    13871388    }
    13881389
     1390    serialReset(pDevIns);
    13891391    return VINF_SUCCESS;
    13901392}
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