diff options
author | peter <peter@FreeBSD.org> | 2000-09-29 04:38:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-09-29 04:38:35 +0000 |
commit | d037f7d6c3ba6cdb5ffcf161105e11d31867959d (patch) | |
tree | 300ed46335674bcb6e99b1cc6f01d6c63c9567be /sys/i386 | |
parent | 55c46e5b71faba163a242794c96696e8b315d674 (diff) | |
download | FreeBSD-src-d037f7d6c3ba6cdb5ffcf161105e11d31867959d.zip FreeBSD-src-d037f7d6c3ba6cdb5ffcf161105e11d31867959d.tar.gz |
First shot at identifying the Pentum 4 acording to our reading of the
the cpu_id extensions in the Intel docs. There is more info available.
See the following URL for more details.
http://developer.intel.com/design/processor/future/manuals/CPUID_Supplement.htm
Requested by: Intel
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/identcpu.c | 5 | ||||
-rw-r--r-- | sys/i386/include/cputypes.h | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index 2b6d484..49014ac 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -106,6 +106,7 @@ static struct cpu_nameclass i386_cpus[] = { { "Cyrix 486S/DX", CPUCLASS_486 }, /* CPU_CY486DX */ { "Pentium II", CPUCLASS_686 }, /* CPU_PII */ { "Pentium III", CPUCLASS_686 }, /* CPU_PIII */ + { "Pentium 4", CPUCLASS_686 }, /* CPU_P4 */ }; static void @@ -220,6 +221,10 @@ printcpuinfo(void) break; } break; + case 0xf00: + strcat(cpu_model, "Pentium 4"); + cpu = CPU_P4; + break; default: strcat(cpu_model, "unknown"); break; diff --git a/sys/i386/include/cputypes.h b/sys/i386/include/cputypes.h index 93e01e2..585df67 100644 --- a/sys/i386/include/cputypes.h +++ b/sys/i386/include/cputypes.h @@ -56,8 +56,9 @@ #define CPU_M2 11 /* Cyrix M2 (aka enhanced 6x86 with MMX */ #define CPU_NX586 12 /* NexGen (now AMD) 586 */ #define CPU_CY486DX 13 /* Cyrix 486S/DX/DX2/DX4 */ -#define CPU_PII 14 /* Intel Pentium II */ -#define CPU_PIII 15 /* Intel Pentium III */ +#define CPU_PII 14 /* Intel Pentium II */ +#define CPU_PIII 15 /* Intel Pentium III */ +#define CPU_P4 16 /* Intel Pentium 4 */ #ifndef LOCORE struct cpu_nameclass { |