summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/cpu.h
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1993-10-08 20:51:00 +0000
committerrgrimes <rgrimes@FreeBSD.org>1993-10-08 20:51:00 +0000
commit4cea6b395d96b7a1365b9c60afb5ab028395acb6 (patch)
treeb58e093f974506172365dd9286d3d54c320f6782 /sys/i386/include/cpu.h
parent5fac13f72b16d267a44fc687b2b5fa89587af849 (diff)
downloadFreeBSD-src-4cea6b395d96b7a1365b9c60afb5ab028395acb6.zip
FreeBSD-src-4cea6b395d96b7a1365b9c60afb5ab028395acb6.tar.gz
All:
Remove patch kit headers, and add $Id$ This is mostly to align some more code with NetBSD. cpu.h: Remove the old function vs. include configuration stuff that was ifdefed out when we went to inline functions. Remove the define of resettodr that made it a nop, there is already a function that makes it a nop, no need to #define one. Remove the #defines of processor types, they are now defined in cputypes.h, #include that file. Add struct cpu_nameclass for support of cpu types. frame.h: include sys/signal.h, it will be needed in the future. put the sigframe structure here that was in machdep.c pcb.h: Add multiple inclusion protection. Add pcb_ldt and pcb_ldt_len to pcb structure, this is for the user mode ldt.
Diffstat (limited to 'sys/i386/include/cpu.h')
-rw-r--r--sys/i386/include/cpu.h35
1 files changed, 14 insertions, 21 deletions
diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h
index 9e09dd4..43a6bec 100644
--- a/sys/i386/include/cpu.h
+++ b/sys/i386/include/cpu.h
@@ -33,7 +33,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#)cpu.h 5.4 (Berkeley) 5/9/91
+ * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91
+ * $Id$
*/
/*
@@ -48,18 +49,6 @@
*/
#undef COPY_SIGCODE /* don't copy sigcode above user stack in exec */
-/*
- * function vs. inline configuration;
- * these are defined to get generic functions
- * rather than inline or machine-dependent implementations
- */
-#if 0
-#define NEED_MINMAX /* need {,i,l,ul}{min,max} functions */
-#define NEED_FFS /* need ffs function */
-#define NEED_BCMP /* need bcmp function */
-#define NEED_STRLEN /* need strlen function */
-#endif
-
#define cpu_exec(p) /* nothing */
/*
@@ -73,8 +62,6 @@ typedef struct intrframe clockframe;
#define CLKF_BASEPRI(framep) ((framep)->if_ppl == 0)
#define CLKF_PC(framep) ((framep)->if_eip)
-#define resettodr() /* no todr to set */
-
/*
* Preempt the current process if in interrupt from user mode,
* or after the current trap/syscall if in system mode.
@@ -100,11 +87,17 @@ int astpending; /* need to trap before returning to user mode */
int want_resched; /* resched() was called */
/*
- * Kinds of processor
+ * pull in #defines for kinds of processors
*/
+#include "machine/cputypes.h"
+
+struct cpu_nameclass {
+ char *cpu_name;
+ int cpu_class;
+};
-#define CPU_386SX 0
-#define CPU_386 1
-#define CPU_486SX 2
-#define CPU_486 3
-#define CPU_586 4
+#ifdef KERNEL
+extern int cpu;
+extern int cpu_class;
+extern struct cpu_nameclass i386_cpus[];
+#endif
OpenPOWER on IntegriCloud