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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to