From 8db19b31db528a3f7410d4fcb2b815c4bd8b37ef Mon Sep 17 00:00:00 2001 From: gwr Date: Tue, 28 Jun 1994 21:42:32 +0000 Subject: [PATCH] Make initial tty mode the same as the PROM uses (so you can read the console messages). --- sys/arch/sun3/dev/zs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/arch/sun3/dev/zs.c b/sys/arch/sun3/dev/zs.c index 1a0645706721..bd29e76a5bac 100644 --- a/sys/arch/sun3/dev/zs.c +++ b/sys/arch/sun3/dev/zs.c @@ -43,7 +43,7 @@ * * from: Header: zs.c,v 1.30 93/07/19 23:44:42 torek Exp * from: sparc/dev/zs.c,v 1.3 1993/10/13 02:36:44 deraadt Exp - * $Id: zs.c,v 1.7 1994/05/30 06:22:36 glass Exp $ + * $Id: zs.c,v 1.8 1994/06/28 21:42:32 gwr Exp $ */ /* @@ -577,7 +577,12 @@ zsopen(dev_t dev, int flags, int mode, struct proc *p) if (tp->t_ispeed == 0) { tp->t_iflag = TTYDEF_IFLAG; tp->t_oflag = TTYDEF_OFLAG; +#if 0 tp->t_cflag = TTYDEF_CFLAG; +#else + /* Make default same as PROM uses. */ + tp->t_cflag = (CREAD | CS8 | HUPCL); +#endif tp->t_lflag = TTYDEF_LFLAG; tp->t_ispeed = tp->t_ospeed = cs->cs_speed; }