Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Add support for the (cobalt) nullcons to am...
details: https://anonhg.NetBSD.org/src/rev/12a054e1997f
branches: trunk
changeset: 335529:12a054e1997f
user: is <is%NetBSD.org@localhost>
date: Sun Jan 11 19:54:23 2015 +0000
description:
Add support for the (cobalt) nullcons to amd64 and i386.
diffstat:
sys/arch/x86/x86/consinit.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r 75ff07a8b41e -r 12a054e1997f sys/arch/x86/x86/consinit.c
--- a/sys/arch/x86/x86/consinit.c Sun Jan 11 18:58:09 2015 +0000
+++ b/sys/arch/x86/x86/consinit.c Sun Jan 11 19:54:23 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: consinit.c,v 1.27 2014/03/12 12:54:33 martin Exp $ */
+/* $NetBSD: consinit.c,v 1.28 2015/01/11 19:54:23 is Exp $ */
/*
* Copyright (c) 1998
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.27 2014/03/12 12:54:33 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.28 2015/01/11 19:54:23 is Exp $");
#include "opt_kgdb.h"
#include "opt_puc.h"
@@ -39,6 +39,9 @@
#include <machine/bootinfo.h>
#include <arch/x86/include/genfb_machdep.h>
+#include <dev/cons.h>
+
+#include "nullcons.h"
#include "genfb.h"
#include "vga.h"
#include "ega.h"
@@ -235,6 +238,14 @@
return;
}
#endif
+#if (NNULLCONS > 0)
+ if (!strcmp(consinfo->devname, "nullcons")) {
+ void nullcninit(struct consdev *cn);
+
+ nullcninit(0);
+ return;
+ }
+#endif
panic("invalid console device %s", consinfo->devname);
}
Home |
Main Index |
Thread Index |
Old Index