Преглед на файлове

[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>
tags/v1.20.1
Peter Pickford преди 10 години
родител
ревизия
d644ad41f5
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      src/core/serial.c

+ 2
- 2
src/core/serial.c Целия файл

@@ -204,8 +204,8 @@ static void serial_init ( void ) {
204 204
 	/* disable interrupts */
205 205
 	uart_writeb(0x0, UART_BASE + UART_IER);
206 206
 
207
-	/* disable fifo's */
208
-	uart_writeb(0x00, UART_BASE + UART_FCR);
207
+	/* enable fifos */
208
+	uart_writeb(0x01, UART_BASE + UART_FCR);
209 209
 
210 210
 	/* Set clear to send, so flow control works... */
211 211
 	uart_writeb((1<<1), UART_BASE + UART_MCR);

Loading…
Отказ
Запис