summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/include/intr.h6
-rw-r--r--sys/arch/sparc/sparc/intr.c45
2 files changed, 2 insertions, 49 deletions
diff --git a/sys/arch/sparc/include/intr.h b/sys/arch/sparc/include/intr.h
index b4fff3a96ac..79078575957 100644
--- a/sys/arch/sparc/include/intr.h
+++ b/sys/arch/sparc/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.1 2009/04/10 20:53:54 miod Exp $ */
+/* $OpenBSD: intr.h,v 1.2 2010/12/21 14:56:24 claudio Exp $ */
/* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */
/*
@@ -94,9 +94,5 @@ void softintr_disestablish(void *);
void *softintr_establish(int, void (*)(void *), void *);
void softintr_schedule(void *);
-/* XXX legacy software interrupts */
-extern void *softnet_ih;
-#define setsoftnet() softintr_schedule(softnet_ih)
-
#endif /* _KERNEL */
#endif /* _SPARC_INTR_H_ */
diff --git a/sys/arch/sparc/sparc/intr.c b/sys/arch/sparc/sparc/intr.c
index 7caa1889400..139ada0343a 100644
--- a/sys/arch/sparc/sparc/intr.c
+++ b/sys/arch/sparc/sparc/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.36 2010/09/28 18:52:00 deraadt Exp $ */
+/* $OpenBSD: intr.c,v 1.37 2010/12/21 14:56:24 claudio Exp $ */
/* $NetBSD: intr.c,v 1.20 1997/07/29 09:42:03 fair Exp $ */
/*
@@ -51,9 +51,6 @@
#include <dev/cons.h>
-#include <net/netisr.h>
-#include <net/if.h>
-
#include <machine/atomic.h>
#include <machine/cpu.h>
#include <machine/ctlreg.h>
@@ -62,26 +59,11 @@
#include <sparc/sparc/cpuvar.h>
-#ifdef INET
-#include <netinet/in.h>
-#include <netinet/if_ether.h>
-#include <netinet/ip_var.h>
-#endif
-
-#ifdef INET6
-# ifndef INET
-# include <netinet/in.h>
-# endif
-#include <netinet/ip6.h>
-#include <netinet6/ip6_var.h>
-#endif
-
extern void raise(int, int);
void ih_insert(struct intrhand **, struct intrhand *);
void ih_remove(struct intrhand **, struct intrhand *);
-void softnet(void *);
void strayintr(struct clockframe *);
/*
@@ -180,8 +162,6 @@ intr_init()
evcount_attach(&level10.ih_count, "clock", &level10.ih_vec);
level14.ih_vec = level14.ih_ipl >> 8;
evcount_attach(&level14.ih_count, "prof", &level14.ih_vec);
-
- softnet_ih = softintr_establish(IPL_SOFTNET, softnet, NULL);
}
/*
@@ -556,29 +536,6 @@ softintr_schedule(void *arg)
splx(s);
}
-void *softnet_ih;
-int netisr;
-
-void
-softnet(void *arg)
-{
- int n;
-
- while ((n = netisr) != 0) {
- atomic_clearbits_int(&netisr, n);
-
-#define DONETISR(bit, fn) \
- do { \
- if (n & (1 << bit)) \
- fn(); \
- } while (0)
-
-#include <net/netisr_dispatch.h>
-
-#undef DONETISR
- }
-}
-
#ifdef DIAGNOSTIC
void
splassert_check(int wantipl, const char *func)