summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/cpu.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1993-11-07 17:43:17 +0000
committerwollman <wollman@FreeBSD.org>1993-11-07 17:43:17 +0000
commit371ee40cea1e168ed119bcd1cde2809629c4ac68 (patch)
tree7642d79d397e1c876673a91bfe70b030e5bcb793 /sys/i386/include/cpu.h
parentc1b92d6bad47f8c2ca5bd5d68fdad201868e0126 (diff)
downloadFreeBSD-src-371ee40cea1e168ed119bcd1cde2809629c4ac68.zip
FreeBSD-src-371ee40cea1e168ed119bcd1cde2809629c4ac68.tar.gz
Made all header files idempotent and moved incorrect common data from
headers into a related source file. Added cons.h as first step towards moving i386/i386/cons.h to machine/cons.h where it belongs.
Diffstat (limited to 'sys/i386/include/cpu.h')
-rw-r--r--sys/i386/include/cpu.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h
index 43a6bec..3fe003f 100644
--- a/sys/i386/include/cpu.h
+++ b/sys/i386/include/cpu.h
@@ -34,9 +34,12 @@
* SUCH DAMAGE.
*
* from: @(#)cpu.h 5.4 (Berkeley) 5/9/91
- * $Id$
+ * $Id: cpu.h,v 1.3 1993/10/08 20:50:57 rgrimes Exp $
*/
+#ifndef _MACHINE_CPU_H_
+#define _MACHINE_CPU_H_ 1
+
/*
* Definitions unique to i386 cpu support.
*/
@@ -83,9 +86,6 @@ typedef struct intrframe clockframe;
#define aston() (astpending++)
-int astpending; /* need to trap before returning to user mode */
-int want_resched; /* resched() was called */
-
/*
* pull in #defines for kinds of processors
*/
@@ -97,7 +97,11 @@ struct cpu_nameclass {
};
#ifdef KERNEL
+extern int astpending; /* want a trap before returning to user mode */
+extern int want_resched; /* resched was called */
+
extern int cpu;
extern int cpu_class;
extern struct cpu_nameclass i386_cpus[];
#endif
+#endif /* _MACHINE_CPU_H_ */
OpenPOWER on IntegriCloud