From ebe3309a133cef1e70e36e6071b9f326291ff69d Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 10 Jul 2014 21:07:43 +0200 Subject: [PATCH] i386 rs232: do full write in out_int . in kvm, this does the full output without truncating and gets rid of the messy 'enough!' case --- drivers/tty/arch/i386/rs232.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/arch/i386/rs232.c b/drivers/tty/arch/i386/rs232.c index 0e29628e3..d65107740 100644 --- a/drivers/tty/arch/i386/rs232.c +++ b/drivers/tty/arch/i386/rs232.c @@ -820,7 +820,7 @@ static void out_int(register rs232_t *rs) * Notify TTY when the buffer goes empty. */ - if (rs->ostate >= (ODEVREADY | OQUEUED | OSWREADY)) { + while (txready(rs) && rs->ostate >= (ODEVREADY | OQUEUED | OSWREADY)) { /* Bit test allows ORAW and requires the others. */ sys_outb(rs->xmit_port, *rs->otail); if (++rs->otail == bufend(rs->obuf)) rs->otail = rs->obuf; -- 2.44.0