Source-Changes-HG archive

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

[src/trunk]: src/sys I forgot to initialize bicons for hpcmips.



details:   https://anonhg.NetBSD.org/src/rev/97fc2c4f20ad
branches:  trunk
changeset: 503593:97fc2c4f20ad
user:      uch <uch%NetBSD.org@localhost>
date:      Fri Feb 09 20:42:27 2001 +0000

description:
I forgot to initialize bicons for hpcmips.

diffstat:

 sys/arch/hpcmips/hpcmips/machdep.c |  5 +++--
 sys/dev/hpc/bicons.c               |  9 ++++++++-
 sys/dev/hpc/bicons.h               |  3 ++-
 3 files changed, 13 insertions(+), 4 deletions(-)

diffs (65 lines):

diff -r 174d577016e8 -r 97fc2c4f20ad sys/arch/hpcmips/hpcmips/machdep.c
--- a/sys/arch/hpcmips/hpcmips/machdep.c        Fri Feb 09 19:54:11 2001 +0000
+++ b/sys/arch/hpcmips/hpcmips/machdep.c        Fri Feb 09 20:42:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.40 2001/02/09 19:47:29 uch Exp $ */
+/*     $NetBSD: machdep.c,v 1.41 2001/02/09 20:42:28 uch Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.40 2001/02/09 19:47:29 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.41 2001/02/09 20:42:28 uch Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 #include "opt_vr41x1.h"
@@ -266,6 +266,7 @@
 #if NBICONSDEV > 0
        /* bicons don't need actual device initialize. only bootinfo needed. */
        cn_tab = &bicons;
+       bicons_init(&bicons);
 #endif
 #endif
        /* Initialize frame buffer (to steal DMA buffer, stay here.) */
diff -r 174d577016e8 -r 97fc2c4f20ad sys/dev/hpc/bicons.c
--- a/sys/dev/hpc/bicons.c      Fri Feb 09 19:54:11 2001 +0000
+++ b/sys/dev/hpc/bicons.c      Fri Feb 09 20:42:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bicons.c,v 1.1 2001/02/09 19:43:23 uch Exp $   */
+/*     $NetBSD: bicons.c,v 1.2 2001/02/09 20:42:27 uch Exp $   */
 
 /*-
  * Copyright (c) 1999-2001
@@ -134,6 +134,13 @@
 static void bicons_printf(const char *, ...) __attribute__((__unused__));
 
 void
+bicons_init(struct consdev *cndev)
+{
+       biconscninit(cndev);
+       biconscnprobe(cndev);
+}
+
+void
 biconscninit(struct consdev *cndev)
 {
        int fb_index = -1; 
diff -r 174d577016e8 -r 97fc2c4f20ad sys/dev/hpc/bicons.h
--- a/sys/dev/hpc/bicons.h      Fri Feb 09 19:54:11 2001 +0000
+++ b/sys/dev/hpc/bicons.h      Fri Feb 09 20:42:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bicons.h,v 1.1 2001/02/09 19:43:23 uch Exp $   */
+/*     $NetBSD: bicons.h,v 1.2 2001/02/09 20:42:27 uch Exp $   */
 
 /*-
  * Copyright (c) 1999-2001
@@ -34,5 +34,6 @@
  *
  */
 
+void bicons_init(struct consdev *);
 void bicons_set_priority(int);
 void bicons_putn(const char *, int);



Home | Main Index | Thread Index | Old Index