From b5be346ff75225a807c46bce2e22b111322103c4 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 9 Jan 1999 15:41:49 +0000 Subject: [PATCH] Fixed switching between consoles (sc0, vt0 or sioN) in userconfig. Broken in: rev.1.315 --- sys/amd64/amd64/machdep.c | 3 ++- sys/i386/i386/machdep.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index cb4f514a841..2fed7051256 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.319 1998/12/16 16:28:56 bde Exp $ + * $Id: machdep.c,v 1.320 1999/01/06 23:05:36 julian Exp $ */ #include "apm.h" @@ -434,6 +434,7 @@ again: #if defined(USERCONFIG) userconfig(); + cninit(); /* the preferred console may have changed */ #endif printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count), diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index cb4f514a841..2fed7051256 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.319 1998/12/16 16:28:56 bde Exp $ + * $Id: machdep.c,v 1.320 1999/01/06 23:05:36 julian Exp $ */ #include "apm.h" @@ -434,6 +434,7 @@ again: #if defined(USERCONFIG) userconfig(); + cninit(); /* the preferred console may have changed */ #endif printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count),