ソースを参照

[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);

読み込み中…
キャンセル
保存