summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-07-20 07:18:46 +0000
committerRoland McGrath <roland@gnu.org>1998-07-20 07:18:46 +0000
commit69385629b01d8069372bf8a375bc7cf00ebf019f (patch)
tree3cd868094b814fdc6de1d8fc7e6dc2e68ab5e9d8 /proc
parentc14711b67a3cc289c73a37ec207b9c615df36ce6 (diff)
1998-07-20 Roland McGrath <roland@baalperazim.frob.com>
* cpu-types.c: Test with #ifdef for CPU_TYPE_I486, CPU_TYPE_PENTIUM, CPU_TYPE_PENTIUMPRO, CPU_TYPE_POWERPC, since not all <mach/machine.h> versions have them.
Diffstat (limited to 'proc')
-rw-r--r--proc/cpu-types.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/proc/cpu-types.c b/proc/cpu-types.c
index 64466e46..7bcaa928 100644
--- a/proc/cpu-types.c
+++ b/proc/cpu-types.c
@@ -21,10 +21,18 @@ const char *const mach_cpu_types[] =
[CPU_TYPE_SPARC] = "sparc",
[CPU_TYPE_I860] = "i860",
[CPU_TYPE_ALPHA] = "alpha",
+#ifdef CPU_TYPE_I486
[CPU_TYPE_I486] = "i486",
+#endif
+#ifdef CPU_TYPE_PENTIUM
[CPU_TYPE_PENTIUM] = "i586",
+#endif
+#ifdef CPU_TYPE_PENTIUMPRO
[CPU_TYPE_PENTIUMPRO] = "i686",
+#endif
+#ifdef CPU_TYPE_POWERPC
[CPU_TYPE_POWERPC] = "powerpc",
+#endif
};
const char *const mach_cpu_subtypes[][32] =
@@ -80,9 +88,15 @@ const char *const mach_cpu_subtypes[][32] =
[CPU_SUBTYPE_PS2] = "PS2", \
}
[CPU_TYPE_I386] = Ix86_SUBTYPES,
+#ifdef CPU_TYPE_I486
[CPU_TYPE_I486] = Ix86_SUBTYPES,
+#endif
+#ifdef CPU_TYPE_PENTIUM
[CPU_TYPE_PENTIUM] = Ix86_SUBTYPES,
+#endif
+#ifdef CPU_TYPE_PENTIUMPRO
[CPU_TYPE_PENTIUMPRO] = Ix86_SUBTYPES,
+#endif
[CPU_TYPE_MIPS] =
{
[CPU_SUBTYPE_MIPS_R2300] = "R2300",