Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci do some minimal setup if we're not the console
details: https://anonhg.NetBSD.org/src/rev/3534a4708125
branches: trunk
changeset: 779726:3534a4708125
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Jun 14 00:21:55 2012 +0000
description:
do some minimal setup if we're not the console
diffstat:
sys/dev/pci/machfb.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r b4ca8b93ba84 -r 3534a4708125 sys/dev/pci/machfb.c
--- a/sys/dev/pci/machfb.c Thu Jun 14 00:15:07 2012 +0000
+++ b/sys/dev/pci/machfb.c Thu Jun 14 00:21:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machfb.c,v 1.76 2012/06/14 00:15:07 macallan Exp $ */
+/* $NetBSD: machfb.c,v 1.77 2012/06/14 00:21:55 macallan Exp $ */
/*
* Copyright (c) 2002 Bang Jun-Young
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0,
- "$NetBSD: machfb.c,v 1.76 2012/06/14 00:15:07 macallan Exp $");
+ "$NetBSD: machfb.c,v 1.77 2012/06/14 00:21:55 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -773,6 +773,11 @@
* until someone actually allocates a screen for us
*/
mach64_modeswitch(sc, sc->sc_my_mode);
+ if (mach64_console_screen.scr_ri.ri_rows == 0) {
+ /* do some minimal setup to avoid weirdnesses later */
+ vcons_init_screen(&sc->vd, &mach64_console_screen, 1,
+ &defattr);
+ }
}
aa.console = sc->sc_console;
Home |
Main Index |
Thread Index |
Old Index