Subject: Re: Trap in NetBSD-current/pmax
To: Reinoud Zandijk <imago@kabel065011.kabel.utwente.nl>
From: Arne H Juul <Arne.Juul@osl.fast.no>
List: port-pmax
Date: 11/07/2000 21:43:31
On Tue, 7 Nov 2000, Reinoud Zandijk wrote:
 > >   A recent change to the tty line discipline has broken the pmax graphics
 > > console.  Serial console still works, which is one work-around.
 > 
 > Bugger .... hgmm... has anyone started on this yet? i could take a look
 > but i dont have much energy left these days to jump into deep water...

try this one...

Index: sys/arch/pmax/dev/rcons.c
===================================================================
RCS file: /rst/nb-cvs/syssrc/sys/arch/pmax/dev/rcons.c,v
retrieving revision 1.45
diff -u -u -r1.45 rcons.c
--- rcons.c	2000/11/03 15:01:10	1.45
+++ rcons.c	2000/11/05 20:52:31
@@ -250,6 +250,8 @@
 	clalloc(&tp->t_canq, 1024, 1);
 	/* output queue doesn't need quoting */
 	clalloc(&tp->t_outq, 1024, 0);
+	/* Set default line discipline. */
+	tp->t_linesw = linesw[0];
 #ifdef DEBUG
 	printf("rconsattach: %d raster consoles\n", n);
 #endif
Index: sys/arch/hpcmips/dev/biconsdev.c
===================================================================
RCS file: /rst/nb-cvs/syssrc/sys/arch/hpcmips/dev/biconsdev.c,v
retrieving revision 1.3
diff -u -u -r1.3 biconsdev.c
--- biconsdev.c	2000/11/02 00:35:05	1.3
+++ biconsdev.c	2000/11/05 11:31:00
@@ -103,6 +103,8 @@
 	clalloc(&tp->t_canq, 1024, 1);
 	/* output queue doesn't need quoting */
 	clalloc(&tp->t_outq, 1024, 0);
+	/* Set default line discipline. */
+	tp->t_linesw = linesw[0];
 
 	tp->t_dev = makedev(34, 0);
 	tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;