Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2004 05:02:48 +0000
From:      RMH <rmhll@sapo.pt>
To:        hackers@freebsd.org
Subject:   i386/identcpu.c question
Message-ID:  <1079154168.38bnk4gdjpq8@mail.sapo.pt>

next in thread | raw e-mail | index | archive | help
Hello hackers,

there are several lines in i386/identcpu.c:

case 0x600:
        /* Check the particular flavor of 686 */
        switch (cpu_id & 0xf0) {
=09case 0x00:
=09        strcat(cpu_model, "Pentium Pro A-step");
=09=09break;
=09case 0x10:
=09        strcat(cpu_model, "Pentium Pro");
=09=09break;
=09case 0x30:
=09case 0x50:
=09case 0x60:
=09        strcat(cpu_model,
=09=09"Pentium II/Pentium II Xeon/Celeron");
=09=09cpu =3D CPU_PII;
=09=09break;
=09case 0x70:
=09case 0x80:
=09case 0xa0:
=09case 0xb0:
=09        strcat(cpu_model,
=09=09"Pentium III/Pentium III Xeon/Celeron");
=09=09cpu =3D CPU_PIII;
=09=09break;

0x30 stands for 0.35-micron Klamath core (Pentium II), there were no
Celeron or Xeon CPUs produced using it. There was PIIOD, but check
for the OverDrive is done separately.

By the way, 0x60 stands for Celeron (Mendocino) and mobile Pentium II
(Dixon) only; 0x70 -- for Pentium III (Katmai) and Pentium III Xeon
(Tanner) only; 0x80 -- for Celeron (Coppermine-128) and Pentium III
(Coppermine) only; 0xa0 -- for Pentium III Xeon (Cascades) only;
0xb0 -- for Celeron (Tualatin) and Pentium III (Tualatin) only.

=09case 0x30:
=09=09strcat(cpu_model, "Pentium II");
=09=09cpu =3D CPU_PII;
=09=09break;
=09case 0x50:
=09=09strcat(cpu_model,
=09=09"Pentium II/Pentium II Xeon/Celeron");
=09=09cpu =3D CPU_PII;
=09=09break;
=09case 0x60:
=09        strcat(cpu_model,
=09=09"Mobile Pentium II/Celeron");
=09=09cpu =3D CPU_PII;
=09=09break;
=09case 0x70:
=09=09strcat(cpu_model,
=09=09"Pentium III/Pentium III Xeon");
=09=09cpu =3D CPU_PIII;
=09=09break;
=09case 0x80:
=09=09strcat(cpu_model, "Pentium III/Celeron");
=09=09cpu =3D CPU_PIII;
=09=09break;
=09case 0xa0:
=09=09strcat(cpu_model, "Pentium III Xeon");
=09=09cpu =3D CPU_PIII;
=09=09break;
=09case 0xb0:
=09        strcat(cpu_model, "Pentium III/Celeron");
=09=09cpu =3D CPU_PIII;
=09=09break;

I suppose it doesn't take a lot of code to fix, but it looks much
better when a CPU is recognised properly (or close to).

---
Regards,
 Rhett


O SAPO j=E1 est=E1 livre de v=EDrus com a Panda Software, fique voc=EA tamb=
=E9m!
Clique em: http://antivirus.sapo.pt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1079154168.38bnk4gdjpq8>