From bf236ce6cc4b1ff79205814d01cc34de80949a8d Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 25 Aug 2012 07:48:52 +0000 Subject: In the gxemul console, check the RB_SERIAL boot flag, and change the relative priority of the gxemul console in line with its role as a "seiral console". This allows it to override video console drivers that might otherwise take precdence, subject to that boot flag. Sponsored by: DARPA, AFRL --- sys/dev/gxemul/cons/gxemul_cons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/gxemul/cons') diff --git a/sys/dev/gxemul/cons/gxemul_cons.c b/sys/dev/gxemul/cons/gxemul_cons.c index a75d137..ffc7b23 100644 --- a/sys/dev/gxemul/cons/gxemul_cons.c +++ b/sys/dev/gxemul/cons/gxemul_cons.c @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include @@ -219,7 +220,7 @@ gxemul_cons_cnprobe(struct consdev *cp) { sprintf(cp->cn_name, "ttyu0"); - cp->cn_pri = CN_NORMAL; + cp->cn_pri = (boothowto & RB_SERIAL) ? CN_REMOTE : CN_NORMAL; } static void -- cgit v1.1