summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-11-08 06:13:22 +0000
committerjhb <jhb@FreeBSD.org>2016-11-08 06:13:22 +0000
commitd0ef2d28ec977696c1bed1b44f5cd45c782a40d6 (patch)
tree0458d6e97f571a880ff0c645e7cf312968846eda /sys/i386
parent3b5cc25eb30f8708b04139fd3ff550590382c6ad (diff)
downloadFreeBSD-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.h5
-rw-r--r--sys/i386/include/md_var.h1
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);
OpenPOWER on IntegriCloud