summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_subr.c
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2002-01-08 10:34:03 +0000
committermsmith <msmith@FreeBSD.org>2002-01-08 10:34:03 +0000
commitea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d (patch)
tree4291f6f5e80438f96ec530927cfa8f763951e05f /sys/netatm/atm_subr.c
parent825021e8a0b29ed7d72004b4d7067d9f3b82cf6e (diff)
downloadFreeBSD-src-ea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d.zip
FreeBSD-src-ea9c5a8d4c59a02cf0cf32205c2b86de18bbfe9d.tar.gz
Initialise the intrq_present fields at runtime, not link time. This allows
us to load protocols at runtime, and avoids the use of common variables. Also fix the ip6_intrq assignment so that it works at all.
Diffstat (limited to 'sys/netatm/atm_subr.c')
-rw-r--r--sys/netatm/atm_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netatm/atm_subr.c b/sys/netatm/atm_subr.c
index 25003e6..871d299 100644
--- a/sys/netatm/atm_subr.c
+++ b/sys/netatm/atm_subr.c
@@ -79,7 +79,6 @@ int atm_dev_print = 0;
int atm_print_data = 0;
int atm_version = ATM_VERSION;
struct timeval atm_debugtime = {0, 0};
-const int atmintrq_present = 1;
struct sp_info atm_attributes_pool = {
"atm attributes pool", /* si_name */
@@ -133,9 +132,10 @@ atm_initialize()
return;
atm_init = 1;
-
atm_intrq.ifq_maxlen = ATM_INTRQ_MAX;
mtx_init(&atm_intrq.ifq_mtx, "atm_inq", MTX_DEF);
+ atmintrq_present = 1;
+
#ifdef sgi
atm_intr_index = register_isr(atm_intr);
#endif
OpenPOWER on IntegriCloud