Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2012 07:48:53 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239668 - head/sys/dev/gxemul/cons
Message-ID:  <201208250748.q7P7mr1B001555@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sat Aug 25 07:48:52 2012
New Revision: 239668
URL: http://svn.freebsd.org/changeset/base/239668

Log:
  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

Modified:
  head/sys/dev/gxemul/cons/gxemul_cons.c

Modified: head/sys/dev/gxemul/cons/gxemul_cons.c
==============================================================================
--- head/sys/dev/gxemul/cons/gxemul_cons.c	Sat Aug 25 07:47:12 2012	(r239667)
+++ head/sys/dev/gxemul/cons/gxemul_cons.c	Sat Aug 25 07:48:52 2012	(r239668)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208250748.q7P7mr1B001555>