diff options
author | Peter Pickford | 2014-04-22 14:45:42 +0200 |
---|---|---|
committer | Michael Brown | 2014-04-22 14:59:21 +0200 |
commit | d644ad41f5a17315ab72f6ebeeecf895f7d41679 (patch) | |
tree | 91ac867a7f3476a1958518db86b401c06aa3f86a /src/core/serial.c | |
parent | [intel] Avoid completely filling the TX descriptor ring (diff) | |
download | ipxe-d644ad41f5a17315ab72f6ebeeecf895f7d41679.tar.gz ipxe-d644ad41f5a17315ab72f6ebeeecf895f7d41679.tar.xz ipxe-d644ad41f5a17315ab72f6ebeeecf895f7d41679.zip |
[serial] Enable UART FIFOs
Escape sequences received via the serial console can fail since the
cpu_nap() in getchar_timeout() can delay processing for more than the
time it takes for a single character to arrive.
Fix by enabling the UART FIFOs.
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/serial.c')
-rw-r--r-- | src/core/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/serial.c b/src/core/serial.c index 8f5a159c..7e4460ab 100644 --- a/src/core/serial.c +++ b/src/core/serial.c @@ -204,8 +204,8 @@ static void serial_init ( void ) { /* disable interrupts */ uart_writeb(0x0, UART_BASE + UART_IER); - /* disable fifo's */ - uart_writeb(0x00, UART_BASE + UART_FCR); + /* enable fifos */ + uart_writeb(0x01, UART_BASE + UART_FCR); /* Set clear to send, so flow control works... */ uart_writeb((1<<1), UART_BASE + UART_MCR); |