summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-10-08 07:14:58 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-10-08 07:14:58 +0000
commitd85701293d96acc4ca5a1dd8c0a94fe59cfed28d (patch)
tree47d8d3579ba57e41a25715ce881990b9b6317115 /sys/arch/mips64
parent33e077d9071fa69a4be4f7c86c2a43cc2c169a35 (diff)
Compile netisr code only for network-capable kernels.
ok pefo@ miod@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/interrupt.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c
index df77cd1374f..cf46cf7ea2e 100644
--- a/sys/arch/mips64/mips64/interrupt.c
+++ b/sys/arch/mips64/mips64/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.8 2004/09/27 19:20:49 pefo Exp $ */
+/* $OpenBSD: interrupt.c,v 1.9 2004/10/08 07:14:57 grange Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -56,6 +56,10 @@
#include <ddb/db_sym.h>
#endif
+#include "atm.h"
+#include "bridge.h"
+#include "ppp.h"
+
static struct evcount soft_count;
static int soft_irq = 0;
@@ -200,6 +204,9 @@ printf("Unhandled interrupt %x:%x\n", cause, pending);
clr_ipending(SINT_CLOCKMASK);
softclock();
}
+#if defined(INET) || defined(INET6) || defined(NETATALK) || defined(IMP) || \
+ defined(IPX) || defined(NS) || defined(CCITT) || NATM > 0 || \
+ NPPP > 0 || NBRIDGE > 0
if ((ipending & SINT_NETMASK) & ~xcpl) {
extern int netisr;
int isr = netisr;
@@ -208,6 +215,7 @@ printf("Unhandled interrupt %x:%x\n", cause, pending);
#define DONETISR(b,f) if (isr & (1 << (b))) f();
#include <net/netisr_dispatch.h>
}
+#endif
#ifdef NOTYET
if ((ipending & SINT_TTYMASK) & ~xcpl) {
@@ -516,6 +524,9 @@ generic_do_pending_int(int newcpl)
clr_ipending(SINT_CLOCKMASK);
softclock();
}
+#if defined(INET) || defined(INET6) || defined(NETATALK) || defined(IMP) || \
+ defined(IPX) || defined(NS) || defined(CCITT) || NATM > 0 || \
+ NPPP > 0 || NBRIDGE > 0
if ((ipending & SINT_NETMASK) & ~newcpl) {
int isr = netisr;
netisr = 0;
@@ -523,6 +534,7 @@ generic_do_pending_int(int newcpl)
#define DONETISR(b,f) if (isr & (1 << (b))) f();
#include <net/netisr_dispatch.h>
}
+#endif
#ifdef NOTYET
if ((ipending & SINT_TTYMASK) & ~newcpl) {