PERFORCE change 210519 for review

Robert Watson rwatson at FreeBSD.org
Wed May 2 08:26:27 UTC 2012


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

Change 210519 by rwatson at rwatson_cinnamon on 2012/05/02 08:25:57

	As done recently in the Altera JTAG UART device driver, rename
	the gxemul console device from a device-specific name to "ttyu0",
	allowing it to be used with the default /etc/ttys on
	FreeBSD/mips.

Affected files ...

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

Differences ...

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

@@ -218,7 +218,7 @@
 gxemul_cons_cnprobe(struct consdev *cp)
 {
 
-	sprintf(cp->cn_name, "gxcons");
+	sprintf(cp->cn_name, "ttyu0");
 	cp->cn_pri = CN_NORMAL;
 }
 
@@ -279,7 +279,7 @@
 
 	tp = tty_alloc(&gxemul_cons_ttydevsw, NULL);
 	tty_init_console(tp, 0);
-	tty_makedev(tp, NULL, "%s", "gxcons");
+	tty_makedev(tp, NULL, "%s", "ttyu0");
 	callout_init(&gxemul_cons_callout, CALLOUT_MPSAFE);
 	callout_reset(&gxemul_cons_callout, gxemul_cons_polltime,
 	    gxemul_cons_timeout, tp);


More information about the p4-projects mailing list