From owner-freebsd-bugs Tue Jan 12 15:40:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA04955 for freebsd-bugs-outgoing; Tue, 12 Jan 1999 15:40:23 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA04908 for ; Tue, 12 Jan 1999 15:40:07 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id PAA19864; Tue, 12 Jan 1999 15:40:02 -0800 (PST) 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 X-Send-Pr-Version: www-1.0 Subject: kern/9463: No Detection of the Intel Celeron and Intel Celeron ( Mendocino ) Processors. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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