summaryrefslogtreecommitdiffstats
path: root/sys/dev/gxemul
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2012-08-25 07:47:12 +0000
committerrwatson <rwatson@FreeBSD.org>2012-08-25 07:47:12 +0000
commit83c1ea99bdd442e09a94c14ff04f92069302ee3a (patch)
tree221e637cbf4a97a5d9d909fc9d6222e2662227d7 /sys/dev/gxemul
parentabc2ec63d56e2b6898a2ecbc41346423fb241144 (diff)
downloadFreeBSD-src-83c1ea99bdd442e09a94c14ff04f92069302ee3a.zip
FreeBSD-src-83c1ea99bdd442e09a94c14ff04f92069302ee3a.tar.gz
Rename the gxemul console device to "ttyu0" to match the expectations of
the default MIPS /etc/ttys. Sponsored by: DARPA, AFRL
Diffstat (limited to 'sys/dev/gxemul')
-rw-r--r--sys/dev/gxemul/cons/gxemul_cons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/gxemul/cons/gxemul_cons.c b/sys/dev/gxemul/cons/gxemul_cons.c
index bb12058..a75d137 100644
--- a/sys/dev/gxemul/cons/gxemul_cons.c
+++ b/sys/dev/gxemul/cons/gxemul_cons.c
@@ -218,7 +218,7 @@ static void
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 @@ gxemul_cons_ttyinit(void *unused)
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);
OpenPOWER on IntegriCloud