diff options
author | peter <peter@FreeBSD.org> | 1999-04-26 08:57:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-26 08:57:51 +0000 |
commit | cbc4b2562bfe5286e4cdccdfb39b54becb24672d (patch) | |
tree | 83f57ada44883546a0cbc1b30d093ca7fdf1e1c7 /sys/alpha | |
parent | fb89c43e31a8158ad7e94486e944d69d0aa1c84a (diff) | |
download | FreeBSD-src-cbc4b2562bfe5286e4cdccdfb39b54becb24672d.zip FreeBSD-src-cbc4b2562bfe5286e4cdccdfb39b54becb24672d.tar.gz |
Register the netisr's via SYSINIT rather than linker sets.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 3c4e567..a4d8c7d 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: machdep.c,v 1.38 1999/04/19 14:14:11 peter Exp $ + * $Id: machdep.c,v 1.39 1999/04/23 19:53:37 dt Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -234,13 +234,11 @@ SYSCTL_INT(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0, ""); /* must be 2 less so 0 0 can signal end of chunks */ #define PHYS_AVAIL_ARRAY_END ((sizeof(phys_avail) / sizeof(vm_offset_t)) - 2) -static void setup_netisrs __P((struct linker_set *)); /* XXX declare elsewhere */ static void identifycpu __P((void)); static vm_offset_t buffer_sva, buffer_eva; vm_offset_t clean_sva, clean_eva; static vm_offset_t pager_sva, pager_eva; -extern struct linker_set netisr_set; #define offsetof(type, member) ((size_t)(&((type *)0)->member)) @@ -297,11 +295,6 @@ cpu_startup(dummy) } /* - * Quickly wire in netisrs. - */ - setup_netisrs(&netisr_set); - - /* * Calculate callout wheel size */ for (callwheelsize = 1, callwheelbits = 0; @@ -464,17 +457,14 @@ register_netisr(num, handler) return (0); } -static void -setup_netisrs(ls) - struct linker_set *ls; +void +netisr_sysinit(data) + void *data; { - int i; const struct netisrtab *nit; - for(i = 0; ls->ls_items[i]; i++) { - nit = (const struct netisrtab *)ls->ls_items[i]; - register_netisr(nit->nit_num, nit->nit_isr); - } + nit = (const struct netisrtab *)data; + register_netisr(nit->nit_num, nit->nit_isr); } /* |