Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2019 07:08:38 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r343602 - stable/12/usr.sbin/bhyve
Message-ID:  <201901310708.x0V78cla090991@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Thu Jan 31 07:08:37 2019
New Revision: 343602
URL: https://svnweb.freebsd.org/changeset/base/343602

Log:
  MFC r343077:
  
  Fix broken uart on Win2016 guest.
  
  Obtained from:	Joyent (commit/2bf1a940afbd1382faff159e7c93c72779ca10f4)

Modified:
  stable/12/usr.sbin/bhyve/uart_emul.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/bhyve/uart_emul.c
==============================================================================
--- stable/12/usr.sbin/bhyve/uart_emul.c	Thu Jan 31 05:20:11 2019	(r343601)
+++ stable/12/usr.sbin/bhyve/uart_emul.c	Thu Jan 31 07:08:37 2019	(r343602)
@@ -431,6 +431,13 @@ uart_write(struct uart_softc *sc, int offset, uint8_t 
 		sc->thre_int_pending = true;
 		break;
 	case REG_IER:
+		/* Assert an interrupt if re-enabling the THRE intr, since we
+		 * always report THRE as active in the status register.
+		 */
+		if ((sc->ier & IER_ETXRDY) == 0 &&
+		    (value & IER_ETXRDY) != 0) {
+			sc->thre_int_pending = true;
+		}
 		/*
 		 * Apply mask so that bits 4-7 are 0
 		 * Also enables bits 0-3 only if they're 1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901310708.x0V78cla090991>