diff options
author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1993-10-08 20:51:00 +0000 |
---|---|---|
committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1993-10-08 20:51:00 +0000 |
commit | 09f07fb057592bd3236f523a6ffa445b1671cac4 (patch) | |
tree | b58e093f974506172365dd9286d3d54c320f6782 /sys/amd64/include/cpu.h | |
parent | 3409a2f6630130987b136fb9962888cf4c5ce209 (diff) | |
download | src-09f07fb057592bd3236f523a6ffa445b1671cac4.tar.gz src-09f07fb057592bd3236f523a6ffa445b1671cac4.zip |
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.
Notes
Notes:
svn path=/head/; revision=557
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r-- | sys/amd64/include/cpu.h | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index 9e09dd48c02f..43a6becdbc02 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/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 |