PERFORCE change 210786 for review

Robert Watson rwatson at FreeBSD.org
Mon May 7 13:33:33 UTC 2012


http://p4web.freebsd.org/@@210786?ac=10

Change 210786 by rwatson at rwatson_svr_ctsrd_mipsbuild on 2012/05/07 13:33:13

	Check for the RB_SERIAL boot flag and change the relative priority
	of the gxemul console and Altera JTAG UART in line with their role
	as "serial consoles" on their respective platforms.  This allows
	them to override video console drivers that might otherwise take
	precedence, subject to that boot flag.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/sys/dev/altera/jtag_uart/altera_jtag_uart.c#3 edit
.. //depot/projects/ctsrd/beribsd/src/sys/dev/gxemul/cons/gxemul_cons.c#4 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/sys/dev/altera/jtag_uart/altera_jtag_uart.c#3 (text+ko) ====

@@ -37,6 +37,7 @@
 #include <sys/kdb.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
+#include <sys/reboot.h>
 #include <sys/tty.h>
 
 #include <ddb/ddb.h>
@@ -297,7 +298,7 @@
 {
 
 	sprintf(cp->cn_name, "ttyu0");
-	cp->cn_pri = CN_NORMAL;
+	cp->cn_pri = (boothowto & RB_SERIAL) ? CN_REMOTE : CN_NORMAL;
 }
 
 static void

==== //depot/projects/ctsrd/beribsd/src/sys/dev/gxemul/cons/gxemul_cons.c#4 (text+ko) ====

@@ -37,6 +37,7 @@
 #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 @@
 {
 
 	sprintf(cp->cn_name, "ttyu0");
-	cp->cn_pri = CN_NORMAL;
+	cp->cn_pri = (boothowto & RB_SERIAL) ? CN_REMOTE : CN_NORMAL;
 }
 
 static void


More information about the p4-projects mailing list