Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbmips/loongson make this compile without ISA supp...



details:   https://anonhg.NetBSD.org/src/rev/a7429e9e8f82
branches:  trunk
changeset: 785166:a7429e9e8f82
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Feb 28 13:22:36 2013 +0000

description:
make this compile without ISA support in the kernel

diffstat:

 sys/arch/evbmips/loongson/yeeloong_machdep.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (47 lines):

diff -r dcd673fe4abb -r a7429e9e8f82 sys/arch/evbmips/loongson/yeeloong_machdep.c
--- a/sys/arch/evbmips/loongson/yeeloong_machdep.c      Thu Feb 28 13:21:15 2013 +0000
+++ b/sys/arch/evbmips/loongson/yeeloong_machdep.c      Thu Feb 28 13:22:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: yeeloong_machdep.c,v 1.4 2012/10/27 17:17:50 chs Exp $ */
+/*     $NetBSD: yeeloong_machdep.c,v 1.5 2013/02/28 13:22:36 macallan Exp $    */
 /*     $OpenBSD: yeeloong_machdep.c,v 1.16 2011/04/15 20:40:06 deraadt Exp $   */
 
 /*
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: yeeloong_machdep.c,v 1.4 2012/10/27 17:17:50 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: yeeloong_machdep.c,v 1.5 2013/02/28 13:22:36 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -235,8 +235,9 @@
 #endif
 };
 
+#if NISA > 0
 static int stray_intr[BONITO_NISA];
-
+#endif
 /*
  * PCI model specific routines
  */
@@ -354,7 +355,7 @@
 /*
  * ISA model specific routines
  */
-
+#if NISA > 0
 void
 lemote_isa_attach_hook(device_t parent, device_t self,
     struct isabus_attach_args *iba)
@@ -407,7 +408,7 @@
 
        return loongson_intr_string(&lemote_bonito, BONITO_ISA_IRQ(irq));
 }
-
+#endif
 /*
  * Legacy (ISA) interrupt handling
  */



Home | Main Index | Thread Index | Old Index