Port-amd64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
nullcons support for amd64/i386 [ver.2]
Hi,
I was in urgent need for a console-less kernel, and found some
committed cobalt snippets (pseudo-device nullcons & friends) that
need more support for x86.
The diff (and the config file I use for it with amd64) are below.
I'd commit this, but it has been suggested to me that a generic
fall back to nullcons for all architectures would be preferable.
-is
Index: sys/arch/x86/x86/consinit.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/consinit.c,v
retrieving revision 1.23
diff -u -r1.23 consinit.c
--- sys/arch/x86/x86/consinit.c 18 Nov 2011 22:18:08 -0000 1.23
+++ sys/arch/x86/x86/consinit.c 1 Oct 2014 13:45:09 -0000
@@ -38,6 +38,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"
@@ -216,6 +219,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);
}
include "arch/amd64/conf/GENERIC"
#vga0 at isa?
no vga* at pci?
options DDB_ONPANIC=0 # see also sysctl(8): `ddb.onpanic'
pseudo-device nullcons
options CONSDEVNAME="\"nullcons\""
options CONS_OVERRIDE
Home |
Main Index |
Thread Index |
Old Index