1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Make NETISR_SET use a SYSINIT() rather than a linker set.

This commit is contained in:
Peter Wemm 1999-04-26 08:52:16 +00:00
parent 96846ff646
commit 2ef43b0971
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46082

View File

@ -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