Subject: Another fix to dev/prom.c
To: None <glass@sun-lamp.cs.berkeley.edu>
From: Gordon W. Ross <gwr@jericho.mc.com>
List: port-sun3
Date: 03/10/1994 08:25:50
The prom console driver suspends output after 49 characters if more
than that number are in the tty output queue when promstart is called.
A fix for this is appended below.

With this and my previous changes to prom.c and sun3autoconf.c the
prom console thing works reasonably well.  My kernel is configured
to use the prom for the the console and the zs driver for ttya/ttyb
(to make life easier while debugging the zs driver).

Gordon Ross

Here is the fix for the output problem:
*** arch/sun3/dev/prom.c.orig	Tue Mar  1 06:21:45 1994
--- arch/sun3/dev/prom.c	Wed Mar  9 23:26:40 1994
***************
*** 191,198 ****
  	}
  	selwakeup(&tp->t_wsel);
      }
!     count = q_to_b(&tp->t_outq, outbuf, 49);
!     if (count) {
  	outbuf[count] = '\0';
  	(void) splhigh();
  	mon_printf("%s", outbuf);
--- 191,197 ----
  	}
  	selwakeup(&tp->t_wsel);
      }
!     while ((count = q_to_b(&tp->t_outq, outbuf, 49)) > 0) {
  	outbuf[count] = '\0';
  	(void) splhigh();
  	mon_printf("%s", outbuf);


------------------------------------------------------------------------------