diff options
author | jhb <jhb@FreeBSD.org> | 2016-11-08 06:13:22 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-11-08 06:13:22 +0000 |
commit | d0ef2d28ec977696c1bed1b44f5cd45c782a40d6 (patch) | |
tree | 0458d6e97f571a880ff0c645e7cf312968846eda /sys/i386 | |
parent | 3b5cc25eb30f8708b04139fd3ff550590382c6ad (diff) | |
download | FreeBSD-src-d0ef2d28ec977696c1bed1b44f5cd45c782a40d6.zip FreeBSD-src-d0ef2d28ec977696c1bed1b44f5cd45c782a40d6.tar.gz |
MFC 305836: Remove 'cpu' and 'cpu_class' on amd64.
The 'cpu' and 'cpu_class' variables were always set to the same value
on amd64 and are legacy holdovers from i386. Remove them entirely on
amd64.
Requested by: kib (MFC)
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/include/cputypes.h | 5 | ||||
-rw-r--r-- | sys/i386/include/md_var.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/i386/include/cputypes.h b/sys/i386/include/cputypes.h index fb0fa47..02af4f1 100644 --- a/sys/i386/include/cputypes.h +++ b/sys/i386/include/cputypes.h @@ -63,4 +63,9 @@ #define CPU_P4 16 /* Intel Pentium 4 */ #define CPU_GEODE1100 17 /* NS Geode SC1100 */ +#ifndef LOCORE +extern int cpu; +extern int cpu_class; +#endif + #endif /* !_MACHINE_CPUTYPES_H_ */ diff --git a/sys/i386/include/md_var.h b/sys/i386/include/md_var.h index c4c9ca9..337f541 100644 --- a/sys/i386/include/md_var.h +++ b/sys/i386/include/md_var.h @@ -65,6 +65,7 @@ void i686_pagezero(void *addr); void sse2_pagezero(void *addr); void init_AMD_Elan_sc520(void); vm_paddr_t kvtop(void *addr); +void panicifcpuunsupported(void); void ppro_reenable_apic(void); void setidt(int idx, alias_for_inthand_t *func, int typ, int dpl, int selec); union savefpu *get_pcb_user_save_td(struct thread *td); |