summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 07:35:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 07:35:41 +0000
commit61d5ab3abf896151690f4270804aad7f8ead1911 (patch)
treeaed481f4e7ea9d3915da8d499f63b5b3db835f8c /sys/arch
parent76fc5d8d8e79b754fba81a84bab2dffafe0910c1 (diff)
tty_attach()
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/isa/pccons.c9
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_drv.c5
2 files changed, 9 insertions, 5 deletions
diff --git a/sys/arch/i386/isa/pccons.c b/sys/arch/i386/isa/pccons.c
index e851e7a6dfc..ce662d0d87d 100644
--- a/sys/arch/i386/isa/pccons.c
+++ b/sys/arch/i386/isa/pccons.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: pccons.c,v 1.15 1996/05/25 22:17:51 deraadt Exp $ */
-/* $NetBSD: pccons.c,v 1.99 1996/05/12 23:12:33 mycroft Exp $ */
+/* $OpenBSD: pccons.c,v 1.16 1996/06/10 07:35:35 deraadt Exp $ */
+/* $NetBSD: pccons.c,v 1.99.4.1 1996/06/04 20:03:53 cgd Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995 Charles Hannum. All rights reserved.
@@ -512,9 +512,10 @@ pcopen(dev, flag, mode, p)
if (sc == 0)
return ENXIO;
- if (!sc->sc_tty)
+ if (!sc->sc_tty) {
tp = sc->sc_tty = ttymalloc();
- else
+ tty_attach(tp);
+ } else
tp = sc->sc_tty;
tp->t_oproc = pcstart;
diff --git a/sys/arch/i386/isa/pcvt/pcvt_drv.c b/sys/arch/i386/isa/pcvt/pcvt_drv.c
index 110c112ae21..3e4044d3639 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_drv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_drv.c,v 1.13 1996/05/25 22:17:55 deraadt Exp $ */
+/* $OpenBSD: pcvt_drv.c,v 1.14 1996/06/10 07:35:40 deraadt Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -245,6 +245,9 @@ pcattach(struct isa_device *dev)
#if PCVT_NETBSD > 100
vs[i].vs_tty = ttymalloc();
+#if PCVT_NETBSD >= 120
+ tty_attach(vs[i].vs_tty);
+#endif /* PCVT_NETBSD >= 120 */
#else /* !PCVT_NETBSD > 100 */
#if PCVT_NETBSD