Date: Tue, 12 Jan 1999 15:30:05 -0800 (PST) From: phiber@udel.edu To: freebsd-gnats-submit@FreeBSD.ORG Subject: kern/9463: No Detection of the Intel Celeron and Intel Celeron ( Mendocino ) Processors. Message-ID: <199901122330.PAA03959@hub.freebsd.org>
index | next in thread | raw e-mail
>Number: 9463
>Category: kern
>Synopsis: No Detection of the Intel Celeron and Intel Celeron ( Mendocino ) Processors.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 12 15:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Bryan Seitz
>Release: 3.0-CURRENT
>Organization:
Netpro Computer Services
>Environment:
FreeBSD FreeBSD.udlug.org 3.0-CURRENT FreeBSD 3.0-CURRENT #11: Mon Jan 11 23:43:21 EST 1999 sysadmin@FreeBSD.udlug.org:/usr/src/sys/compile/CELERYKRNL i386
>Description:
Here is a sample from dmesg before my change:
CPU: Unknown 80686 (451.03-MHz 686-class CPU)
and after :
CPU: Pentium II Celeron (Mendocino) (451.03-MHz 686-class CPU)
>How-To-Repeat:
Boot the machine with an Intel Celeron or Celeron (Mendocino)
Processor, and you get Unknown 80686 cpu.
>Fix:
--- identcpu.c Fri Jan 8 19:43:08 1999
+++ identcpu_changed.c Tue Jan 12 18:28:15 1999
@@ -125,7 +125,7 @@
printcpuinfo(void)
{
- u_int regs[4], nreg;
+ u_int regs[4], nreg, edx;
cpu_class = i386_cpus[cpu].cpu_class;
printf("CPU: ");
strncpy(cpu_model, i386_cpus[cpu].cpu_name, sizeof cpu_model);
@@ -203,6 +203,16 @@
strcat(cpu_model, "Pentium II (quarter-micron)");
cpu = CPU_PII;
break;
+ case 0x60:
+ do_cpuid( 2, regs );
+ edx = regs[3];
+ edx &= 0xff;
+ if ( edx == 0x41 ) /* 128k cache */
+ strcat( cpu_model, "Pentium II Celeron (Mendocino)" );
+ else
+ strcat( cpu_model,"Pentium II Celeron" );
+ cpu = CPU_PII;
+ break;
default:
strcat(cpu_model, "Unknown 80686");
break;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901122330.PAA03959>
