diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-04 13:22:14 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-09-04 13:22:14 +0000 |
commit | dfe9c4fe1f76dda5104f1b1ef22582b0470fd9e0 (patch) | |
tree | 5fedb10257ca9b310ad94d6be0ca868f683d8fed /sys/arch | |
parent | bbf04f1e57b3bfa33934c405f2ff344595d54bbf (diff) |
Don't forget tty_attach. Should fix the timeout related panics.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/pcons.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |