Date: Fri, 10 Jan 2003 18:59:30 +0100 (CET) From: Attila Nagy <bra@fsn.hu> To: John Baldwin <jhb@FreeBSD.org> Cc: Alexey Dokuchaev <danfe@nsu.ru>, "" <cvs-committers@freebsd.org>, "" <cvs-all@freebsd.org> Subject: Re: cvs commit: src/sys/i386/i386 identcpu.c Message-ID: <Pine.LNX.4.50.0301101857320.510-100000@scribble.fsn.hu> In-Reply-To: <XFMail.20030110114048.jhb@FreeBSD.org> References: <XFMail.20030110114048.jhb@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
Hello,
> > Well it now distinguish *real* PIII and Celeron (if it's ever possible)?
> The kernel can only tell what the CPU tells it. :)
Don't bite me, but leenuks can do it.
AFAIK this is the magic:
/* Names for the Pentium II/Celeron processors
detectable only by also checking the cache size.
Dixon is NOT a Celeron. */
if (c->x86 == 6) {
switch (c->x86_model) {
case 5:
if (l2 == 0)
p = "Celeron (Covington)";
if (l2 == 256)
p = "Mobile Pentium II (Dixon)";
break;
case 6:
if (l2 == 128)
p = "Celeron (Mendocino)";
break;
case 8:
if (l2 == 128)
p = "Celeron (Coppermine)";
break;
}
}
if ( p )
strcpy(c->x86_model_id, p);
The above is from arch/i386/kernel/setup.c
----------[ Free Software ISOs - http://www.fsn.hu/?f=download ]----------
Attila Nagy e-mail: Attila.Nagy@fsn.hu
Free Software Network (FSN.HU) phone @work: +361 210 1415 (194)
cell.: +3630 306 6758
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.50.0301101857320.510-100000>
