aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r--sys/amd64/include/cpu.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h
index 43a6becdbc02..3fe003f48dbf 100644
--- a/sys/amd64/include/cpu.h
+++ b/sys/amd64/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_ */