Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Call rcons_ttyinit() on first open.



details:   https://anonhg.NetBSD.org/src/rev/a876872987a9
branches:  trunk
changeset: 483893:a876872987a9
user:      pk <pk%NetBSD.org@localhost>
date:      Mon Mar 20 11:27:16 2000 +0000

description:
Call rcons_ttyinit() on first open.

diffstat:

 sys/arch/sparc/dev/kd.c   |  6 ++----
 sys/arch/sparc64/dev/kd.c |  3 ++-
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (51 lines):

diff -r 2334de15fb90 -r a876872987a9 sys/arch/sparc/dev/kd.c
--- a/sys/arch/sparc/dev/kd.c   Mon Mar 20 11:24:46 2000 +0000
+++ b/sys/arch/sparc/dev/kd.c   Mon Mar 20 11:27:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kd.c,v 1.7 2000/03/19 13:22:14 pk Exp $        */
+/*     $NetBSD: kd.c,v 1.8 2000/03/20 11:27:16 pk Exp $        */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -76,8 +76,6 @@
 #include <dev/sun/kbd_xlate.h>
 #include <dev/sun/kbdvar.h>
 
-struct tty *fbconstty = 0;     /* tty structure for frame buffer console */
-
 #define        KDMAJOR 1
 #define PUT_WSIZE      64
 
@@ -101,7 +99,6 @@
 static void kd_init __P((struct kd_softc *));
 static void kd_cons_input __P((int));
 
-
 /*
  * Prepare the console tty; called on first open of /dev/console
  */
@@ -126,6 +123,7 @@
        /* If the raster console driver is attached, copy its size */
        kd->rows = fbrcons_rows();
        kd->cols = fbrcons_cols();
+       rcons_ttyinit(tp);
 #endif
 
        /* else, consult the PROM */
diff -r 2334de15fb90 -r a876872987a9 sys/arch/sparc64/dev/kd.c
--- a/sys/arch/sparc64/dev/kd.c Mon Mar 20 11:24:46 2000 +0000
+++ b/sys/arch/sparc64/dev/kd.c Mon Mar 20 11:27:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kd.c,v 1.8 2000/03/19 14:41:48 pk Exp $        */
+/*     $NetBSD: kd.c,v 1.9 2000/03/20 11:27:16 pk Exp $        */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -132,6 +132,7 @@
 #ifdef RASTERCONSOLE
                kd->rows = fbrcons_rows();
                kd->cols = fbrcons_cols();
+               rcons_ttyinit(tp);
 #endif
        }
 



Home | Main Index | Thread Index | Old Index