From owner-cvs-all Fri Jan 10 9:59:36 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F8B737B406 for ; Fri, 10 Jan 2003 09:59:34 -0800 (PST) Received: from scribble.fsn.hu (scribble.fsn.hu [193.224.40.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 9AD4343F5F for ; Fri, 10 Jan 2003 09:59:32 -0800 (PST) (envelope-from bra@fsn.hu) Received: (qmail 3004 invoked by uid 1000); 10 Jan 2003 17:59:30 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Jan 2003 17:59:30 -0000 Date: Fri, 10 Jan 2003 18:59:30 +0100 (CET) From: Attila Nagy To: John Baldwin Cc: Alexey Dokuchaev , "" , "" Subject: Re: cvs commit: src/sys/i386/i386 identcpu.c In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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