Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ia64/ia64 Make GENERIC compilable
details: https://anonhg.NetBSD.org/src/rev/3212889828f0
branches: trunk
changeset: 328445:3212889828f0
user: martin <martin%NetBSD.org@localhost>
date: Thu Apr 03 17:07:07 2014 +0000
description:
Make GENERIC compilable
diffstat:
sys/arch/ia64/ia64/consinit.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 6a0d4a447b20 -r 3212889828f0 sys/arch/ia64/ia64/consinit.c
--- a/sys/arch/ia64/ia64/consinit.c Thu Apr 03 17:05:58 2014 +0000
+++ b/sys/arch/ia64/ia64/consinit.c Thu Apr 03 17:07:07 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: consinit.c,v 1.3 2014/03/12 08:36:59 martin Exp $ */
+/* $NetBSD: consinit.c,v 1.4 2014/04/03 17:07:07 martin Exp $ */
/*
* Copyright (c) 2009 KIYOHARA Takashi
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.3 2014/03/12 08:36:59 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.4 2014/04/03 17:07:07 martin Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -123,7 +123,7 @@
pcdp_cninit(struct consdev *cn)
{
struct dig64_hcdp_table *tbl;
-#if NVGA > 0
+#if NVGA > 0 || NCOM > 0
union dev_desc *desc;
#endif
uint64_t hcdp;
@@ -137,12 +137,13 @@
n = 0;
m = tbl->length - sizeof(struct dig64_hcdp_table);
while (n < m) {
-#if NVGA > 0
+#if NVGA > 0 || NCOM > 0
desc = (union dev_desc *)((char *)tbl->entry + n);
+#endif
/* not yet... */
/* Our VGA is Framebuffer? */
-
+#if NVGA > 0
if (cn->cn_pri == CN_NORMAL &&
desc->type ==
(DIG64_ENTRYTYPE_VGA | DIG64_ENTRYTYPE_OUTONLY)) {
Home |
Main Index |
Thread Index |
Old Index