Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109658869
D19499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
895 B
Referenced Files
None
Subscribers
None
D19499.diff
View Options
Index: usr.sbin/bhyve/uart_emul.c
===================================================================
--- usr.sbin/bhyve/uart_emul.c
+++ usr.sbin/bhyve/uart_emul.c
@@ -4,6 +4,7 @@
* Copyright (c) 2012 NetApp, Inc.
* Copyright (c) 2013 Neel Natu <neel@freebsd.org>
* All rights reserved.
+ * Copyright (c) 2018 Joyent, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -431,6 +432,14 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 1:18 AM (20 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16539010
Default Alt Text
D19499.diff (895 B)
Attached To
Mode
D19499: bhyve uart broken for win2016 guest
Attached
Detach File
Event Timeline
Log In to Comment