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 ifdef variable like their use
details: https://anonhg.NetBSD.org/src/rev/5722ed3f3327
branches: trunk
changeset: 327592:5722ed3f3327
user: martin <martin%NetBSD.org@localhost>
date: Wed Mar 12 08:36:59 2014 +0000
description:
ifdef variable like their use
diffstat:
sys/arch/ia64/ia64/consinit.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 186c9928af03 -r 5722ed3f3327 sys/arch/ia64/ia64/consinit.c
--- a/sys/arch/ia64/ia64/consinit.c Wed Mar 12 07:32:46 2014 +0000
+++ b/sys/arch/ia64/ia64/consinit.c Wed Mar 12 08:36:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: consinit.c,v 1.2 2012/06/18 01:40:55 kiyohara Exp $ */
+/* $NetBSD: consinit.c,v 1.3 2014/03/12 08:36:59 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.2 2012/06/18 01:40:55 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.3 2014/03/12 08:36:59 martin Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -123,7 +123,9 @@
pcdp_cninit(struct consdev *cn)
{
struct dig64_hcdp_table *tbl;
+#if NVGA > 0
union dev_desc *desc;
+#endif
uint64_t hcdp;
int n, m;
@@ -135,8 +137,8 @@
n = 0;
m = tbl->length - sizeof(struct dig64_hcdp_table);
while (n < m) {
+#if NVGA > 0
desc = (union dev_desc *)((char *)tbl->entry + n);
-#if NVGA > 0
/* not yet... */
/* Our VGA is Framebuffer? */
Home |
Main Index |
Thread Index |
Old Index