git: 9front

Download patch

ref: fede6eb121103b5ce8440d56ce870316a5b2ee8f
parent: 6045e58729088d695688ebf5f5168e577387badf
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 12 16:06:10 EST 2023

devuart: make sure consuart was enabled before setting serialoq

--- a/sys/src/9/port/devuart.c
+++ b/sys/src/9/port/devuart.c
@@ -285,7 +285,7 @@
 uartinit(void)
 {
 	/* now that the timers are ticking, enable buffered uart */
-	if(serialoq == nil && consuart != nil)
+	if(serialoq == nil && consuart != nil && consuart->enabled)
 		serialoq = consuart->oq;
 }
 
--