Source-Changes-HG archive

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

[src/trunk]: src/sys/dev cninit - don't reset cn_tab on entry.



details:   https://anonhg.NetBSD.org/src/rev/74bec890b6a8
branches:  trunk
changeset: 936539:74bec890b6a8
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Jul 29 01:55:58 2020 +0000

description:
cninit - don't reset cn_tab on entry.

cn_tab can be already set up by the MD startup code to point to an
early console vtable that can still be useful for debugging and as a
fallback.

diffstat:

 sys/dev/cninit.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 77166a4a7d7d -r 74bec890b6a8 sys/dev/cninit.c
--- a/sys/dev/cninit.c  Tue Jul 28 22:44:44 2020 +0000
+++ b/sys/dev/cninit.c  Wed Jul 29 01:55:58 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cninit.c,v 1.13 2020/07/17 02:16:57 uwe Exp $  */
+/*     $NetBSD: cninit.c,v 1.14 2020/07/29 01:55:58 uwe Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cninit.c,v 1.13 2020/07/17 02:16:57 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cninit.c,v 1.14 2020/07/29 01:55:58 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -59,8 +59,6 @@
        struct consdev *bestMatch;
        struct consdev *cp;
 
-       cn_tab = NULL;
-
        /*
         * Collect information about all possible consoles
         * and find the one with highest priority
@@ -84,7 +82,6 @@
         * Turn on console
         */
        {
-               /* XXX: can this ever be non-NULL? */
                struct consdev *old_cn_tab = cn_tab;
 
                /* cn_init may set cn_tab to self */



Home | Main Index | Thread Index | Old Index