summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/cpu.h
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-01-27 20:14:13 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-01-27 20:14:13 +0000
commit4b8295848c9404b58e43741cd4c4dba454d704e4 (patch)
treec9131aa756edcc02db59dc9f5abea2fe5c3f14f4 /sys/arch/sparc/include/cpu.h
parentb1f982a28a9f7ee48c3708555882e7ba072c70df (diff)
reduce global symbol pollution
Diffstat (limited to 'sys/arch/sparc/include/cpu.h')
-rw-r--r--sys/arch/sparc/include/cpu.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/sparc/include/cpu.h b/sys/arch/sparc/include/cpu.h
index ce4679565d6..e80925c85cb 100644
--- a/sys/arch/sparc/include/cpu.h
+++ b/sys/arch/sparc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.6 1999/07/23 19:11:27 jason Exp $ */
+/* $OpenBSD: cpu.h,v 1.7 2000/01/27 20:14:12 art Exp $ */
/* $NetBSD: cpu.h,v 1.24 1997/03/15 22:25:15 pk Exp $ */
/*
@@ -103,7 +103,8 @@ extern int eintstack[];
union sir {
int sir_any;
char sir_which[4];
-} sir;
+};
+extern union sir sir;
#define SIR_NET 0
#define SIR_CLOCK 1
@@ -122,14 +123,13 @@ extern void raise __P((int, int));
#define setsoftnet() (sir.sir_which[SIR_NET] = 1, setsoftint())
#define setsoftclock() (sir.sir_which[SIR_CLOCK] = 1, setsoftint())
-int want_ast;
-
/*
* Preempt the current process if in interrupt from user mode,
* or after the current trap/syscall if in system mode.
*/
-int want_resched; /* resched() was called */
+extern int want_resched; /* resched() was called */
#define need_resched() (want_resched = 1, want_ast = 1)
+extern int want_ast;
/*
* Give a profiling tick to the current process when the user profiling
@@ -149,8 +149,8 @@ int want_resched; /* resched() was called */
*
* XXX this must be per-cpu (eventually)
*/
-struct proc *fpproc; /* FPU owner */
-int foundfpu; /* true => we have an FPU */
+extern struct proc *fpproc; /* FPU owner */
+extern int foundfpu; /* true => we have an FPU */
/*
* Interrupt handler chains. Interrupt handlers should return 0 for
@@ -162,8 +162,8 @@ struct intrhand {
int (*ih_fun) __P((void *));
void *ih_arg;
struct intrhand *ih_next;
-} *intrhand[15];
-
+};
+extern struct intrhand *intrhand[15];
void intr_establish __P((int level, struct intrhand *));
void vmeintr_establish __P((int vec, int level, struct intrhand *));