summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/cpu.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-07-13 15:29:37 +0000
committerimp <imp@FreeBSD.org>2010-07-13 15:29:37 +0000
commit00ad2ce7bcfbf0cf98ed78b850e2a706262f803e (patch)
treed3e5eaae6b2ce092d3fe23ea2ebd711f4bd1bde8 /sys/mips/include/cpu.h
parent31963c9545c4807c8b7548aafb6295b827173934 (diff)
downloadFreeBSD-src-00ad2ce7bcfbf0cf98ed78b850e2a706262f803e.zip
FreeBSD-src-00ad2ce7bcfbf0cf98ed78b850e2a706262f803e.tar.gz
cpu_id and fpu_id are unused, except to be set early in the boot code.
The problem with setting it there is that the last CPU to come up wins, it seems. This also removes one more ifdef in locore.S, a noble goal too. Since they are unused, and pollute cpu.h, remove them. Submitted by: bde.h (cpu.h pollution) Approved in theory by: jmallet@
Diffstat (limited to 'sys/mips/include/cpu.h')
-rw-r--r--sys/mips/include/cpu.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/mips/include/cpu.h b/sys/mips/include/cpu.h
index 21d2b89..291c169 100644
--- a/sys/mips/include/cpu.h
+++ b/sys/mips/include/cpu.h
@@ -393,16 +393,7 @@ union cpuprid {
#define MIPS_RM52XX 0x28 /* QED RM52X0 based FPU ISA IV */
#define MIPS_VR5400 0x54 /* NEC Vr5400 FPU ISA IV+ */
-#ifndef _LOCORE
-extern union cpuprid cpu_id;
-
-#define mips_proc_type() ((cpu_id.cpu.cp_vendor << 8) | cpu_id.cpu.cp_imp)
-#define mips_set_proc_type(type) (cpu_id.cpu.cp_vendor = (type) >> 8, \
- cpu_id.cpu.cp_imp = ((type) & 0x00ff))
-#endif /* !_LOCORE */
-
#if defined(_KERNEL) && !defined(_LOCORE)
-extern union cpuprid fpu_id;
struct user;
OpenPOWER on IntegriCloud