summaryrefslogtreecommitdiffstats
path: root/sys/dev/gxemul/cons
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2012-08-25 07:48:52 +0000
committerrwatson <rwatson@FreeBSD.org>2012-08-25 07:48:52 +0000
commitbf236ce6cc4b1ff79205814d01cc34de80949a8d (patch)
tree26735dc9666f2594f795c97def5069e88285da3d /sys/dev/gxemul/cons
parent83c1ea99bdd442e09a94c14ff04f92069302ee3a (diff)
downloadFreeBSD-src-bf236ce6cc4b1ff79205814d01cc34de80949a8d.zip
FreeBSD-src-bf236ce6cc4b1ff79205814d01cc34de80949a8d.tar.gz
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
Diffstat (limited to 'sys/dev/gxemul/cons')
-rw-r--r--sys/dev/gxemul/cons/gxemul_cons.c3
1 files changed, 2 insertions, 1 deletions
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 <sys/kdb.h>
#include <sys/systm.h>
#include <sys/kernel.h>
+#include <sys/reboot.h>
#include <sys/tty.h>
#include <ddb/ddb.h>
@@ -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
OpenPOWER on IntegriCloud