Date: Mon, 7 May 2012 13:33:32 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 210786 for review Message-ID: <201205071333.q47DXWHF097092@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@210786?ac=10 Change 210786 by rwatson@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205071333.q47DXWHF097092>