Date: Fri, 08 Jan 1999 20:06:09 -0500 From: Bryan Seitz <phiber@udel.edu> To: current@FreeBSD.ORG Subject: FreeBSD Celeron and Celeron ( Mendocino ) kernel patch. Message-ID: <4.1.19990108200358.009a82c0@10.0.0.1>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.1.19990108200358.009a82c0>
