summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-05-18 23:38:33 +0000
committerpeter <peter@FreeBSD.org>2000-05-18 23:38:33 +0000
commit7c263c5bb0d4c3a35cd67dc436ca4f4d263896dc (patch)
tree0c2e0f62647e86ca65b153344ddc02e9861557b1 /sys
parent3c40b9af61997409597763182c2044bfa018bd38 (diff)
downloadFreeBSD-src-7c263c5bb0d4c3a35cd67dc436ca4f4d263896dc.zip
FreeBSD-src-7c263c5bb0d4c3a35cd67dc436ca4f4d263896dc.tar.gz
Eliminate a couple of evil common declarations.
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/alpha/interrupt.c1
-rw-r--r--sys/alpha/alpha/trap.c1
-rw-r--r--sys/alpha/include/cpu.h4
3 files changed, 4 insertions, 2 deletions
diff --git a/sys/alpha/alpha/interrupt.c b/sys/alpha/alpha/interrupt.c
index c85e08d..db6f542 100644
--- a/sys/alpha/alpha/interrupt.c
+++ b/sys/alpha/alpha/interrupt.c
@@ -57,6 +57,7 @@ struct evcnt clock_intr_evcnt; /* event counter for clock intrs. */
#endif
volatile int mc_expected, mc_received;
+u_int32_t intr_nesting_level;
static void
dummy_perf(unsigned long vector, struct trapframe *framep)
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c
index 40e33dd..a21d532 100644
--- a/sys/alpha/alpha/trap.c
+++ b/sys/alpha/alpha/trap.c
@@ -68,6 +68,7 @@
#include <ddb/ddb.h>
#endif
+u_int32_t want_resched;
u_int32_t astpending;
struct proc *fpcurproc; /* current user of the FPU */
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h
index 597bb62..c9d783b 100644
--- a/sys/alpha/include/cpu.h
+++ b/sys/alpha/include/cpu.h
@@ -92,8 +92,8 @@ struct clockframe {
#define aston() (astpending = 1)
#ifdef _KERNEL
-u_int32_t intr_nesting_level; /* bookeeping only; counts software intr */
-u_int32_t want_resched; /* resched() was called */
+extern u_int32_t intr_nesting_level; /* bookeeping only; counts sw intrs */
+extern u_int32_t want_resched; /* resched() was called */
#endif
OpenPOWER on IntegriCloud