From dfe9c4fe1f76dda5104f1b1ef22582b0470fd9e0 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Tue, 4 Sep 2001 13:22:14 +0000 Subject: Don't forget tty_attach. Should fix the timeout related panics. --- sys/arch/sparc64/dev/pcons.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc64') diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index 1c919bf14fb..3161db444fe 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcons.c,v 1.1 2001/08/19 05:21:37 jason Exp $ */ +/* $OpenBSD: pcons.c,v 1.2 2001/09/04 13:22:13 art Exp $ */ /* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */ /*- @@ -174,8 +174,10 @@ pconsopen(dev, flag, mode, p) sc = pcons_cd.cd_devs[unit]; if (!sc) return ENXIO; - if (!(tp = sc->of_tty)) + if (!(tp = sc->of_tty)) { sc->of_tty = tp = ttymalloc(); + tty_attach(tp); + } tp->t_oproc = pconsstart; tp->t_param = pconsparam; tp->t_dev = dev; -- cgit v1.2.3