Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev make sure to set cn_dev and cn_pri in ...
details: https://anonhg.NetBSD.org/src/rev/50955489e937
branches: trunk
changeset: 771959:50955489e937
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Dec 11 20:43:03 2011 +0000
description:
make sure to set cn_dev and cn_pri in our consdev struct
diffstat:
sys/arch/usermode/dev/ttycons.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 3fe2a37b6737 -r 50955489e937 sys/arch/usermode/dev/ttycons.c
--- a/sys/arch/usermode/dev/ttycons.c Sun Dec 11 20:33:52 2011 +0000
+++ b/sys/arch/usermode/dev/ttycons.c Sun Dec 11 20:43:03 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttycons.c,v 1.6 2011/12/09 09:27:13 reinoud Exp $ */
+/* $NetBSD: ttycons.c,v 1.7 2011/12/11 20:43:03 jmcneill Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ttycons.c,v 1.6 2011/12/09 09:27:13 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttycons.c,v 1.7 2011/12/11 20:43:03 jmcneill Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -58,6 +58,8 @@
.cn_getc = ttycons_cngetc,
.cn_putc = ttycons_cnputc,
.cn_pollc = ttycons_cnpollc,
+ .cn_dev = NODEV,
+ .cn_pri = CN_NORMAL,
};
CFATTACH_DECL_NEW(ttycons, sizeof(ttycons_softc_t),
Home |
Main Index |
Thread Index |
Old Index