summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-26 08:52:16 +0000
committerpeter <peter@FreeBSD.org>1999-04-26 08:52:16 +0000
commit74790d1b53e6dd13d6fe1c770b159da9443cf6be (patch)
treefa195130272dcb5fc5b82d44862dda07819c68cd /sys/net
parent22f901a57c1958698d9cecf2b40a9fc0fd04f786 (diff)
downloadFreeBSD-src-74790d1b53e6dd13d6fe1c770b159da9443cf6be.zip
FreeBSD-src-74790d1b53e6dd13d6fe1c770b159da9443cf6be.tar.gz
Make NETISR_SET use a SYSINIT() rather than a linker set.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/netisr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/netisr.h b/sys/net/netisr.h
index 02fc4f6..65aeb10 100644
--- a/sys/net/netisr.h
+++ b/sys/net/netisr.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)netisr.h 8.1 (Berkeley) 6/10/93
- * $Id: netisr.h,v 1.13 1997/09/16 11:43:44 bde Exp $
+ * $Id: netisr.h,v 1.14 1998/06/07 11:52:17 bde Exp $
*/
#ifndef _NET_NETISR_H_
@@ -81,12 +81,12 @@ struct netisrtab {
netisr_t *nit_isr;
};
-#define NETISR_SET(num, isr) \
- static struct netisrtab mod_nit = { num, isr }; \
- DATA_SET(netisr_set, mod_nit)
-
int register_netisr __P((int, netisr_t *));
+void netisr_sysinit __P((void *));
+#define NETISR_SET(num, isr) \
+ static struct netisrtab nisr_##num = { num, isr }; \
+ SYSINIT(nisr_##num, SI_SUB_CPU, SI_ORDER_ANY, netisr_sysinit, &nisr_##num)
#endif
#endif
OpenPOWER on IntegriCloud