From owner-freebsd-current Fri Jan 8 17:06:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA21667 for freebsd-current-outgoing; Fri, 8 Jan 1999 17:06:08 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from linux.udlug.org (dhcp14-10.superstream.net [24.40.10.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA21661 for ; Fri, 8 Jan 1999 17:06:06 -0800 (PST) (envelope-from phiber@udel.edu) Received: from win98 (win98 [10.0.0.2]) by linux.udlug.org (8.9.2/8.8.7) with SMTP id UAA12673 for ; Fri, 8 Jan 1999 20:04:47 -0500 (EST) Message-Id: <4.1.19990108200358.009a82c0@10.0.0.1> X-Sender: sysadmin@10.0.0.1 X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Fri, 08 Jan 1999 20:06:09 -0500 To: current@FreeBSD.ORG From: Bryan Seitz Subject: FreeBSD Celeron and Celeron ( Mendocino ) kernel patch. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I was messing around with a new machine the other day when I decided to install FreeBSD 3.0-CURRENT. I've got a celeron 300a in it running at 450Mhz. Since the Kernel decided not to pick this up, I've patched it. I am including it in this message. I'm not promising anything, but it works great for me ;} --- identcpu_orig.c Fri Jan 8 19:43:08 1999 +++ identcpu.c Fri Jan 8 19:50:50 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, "Celeron (Mendocino)" ); + else + strcat( cpu_model, "Celeron" ); + cpu = CPU_PII; + break; default: strcat(cpu_model, "Unknown 80686"); break; [*]-----------------------------------------------------[*] * Bryan G. Seitz * * University of Delaware Computer Science * * http://hwg.linuxos.org * [*]-----------------------------------------------------[*] "Linux is like a wigwam - no windows, no gates, apache inside!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message