Bladeren bron

[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 jaren geleden
bovenliggende
commit
d644ad41f5
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      src/core/serial.c

+ 2
- 2
src/core/serial.c Bestand weergeven

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

Laden…
Annuleren
Opslaan