From nobody  Tue Jan 12 15:30:05 1999
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id PAA03959;
          Tue, 12 Jan 1999 15:30:05 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199901122330.PAA03959@hub.freebsd.org>
Date: Tue, 12 Jan 1999 15:30:05 -0800 (PST)
From: phiber@udel.edu
To: freebsd-gnats-submit@freebsd.org
Subject: No Detection of the Intel Celeron and Intel Celeron ( Mendocino ) Processors.
X-Send-Pr-Version: www-1.0

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 12 15:40:01 PST 1999
>Closed-Date:    Thu Feb 4 08:57:59 PST 1999
>Last-Modified:  Thu Feb  4 08:58:26 PST 1999
>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:
State-Changed-From-To: open->closed 
State-Changed-By: kato 
State-Changed-When: Thu Feb 4 08:57:59 PST 1999 
State-Changed-Why:  
4.0-current now recognizes your cpu. 
>Unformatted:
