console: Bring back newline translation

Change-Id: Ib42f4a9eeb48dfb1a04e332aeb8f83dc4c4eef91
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/10188
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Kyösti Mälkki 2015-05-13 20:20:00 +03:00 committed by Stefan Reinauer
parent 2d3964ec29
commit d4a72f724f
1 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,14 @@ void console_tx_byte(unsigned char byte)
__spkmodem_tx_byte(byte); __spkmodem_tx_byte(byte);
__qemu_debugcon_tx_byte(byte); __qemu_debugcon_tx_byte(byte);
/* Some consoles want newline conversion
* to keep terminals happy.
*/
if (byte == '\n') {
__uart_tx_byte('\r');
__usb_tx_byte('\r');
}
__uart_tx_byte(byte); __uart_tx_byte(byte);
__ne2k_tx_byte(byte); __ne2k_tx_byte(byte);
__usb_tx_byte(byte); __usb_tx_byte(byte);