From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 10 19:51:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B0C416A4CE for ; Wed, 10 Mar 2004 19:51:21 -0800 (PST) Received: from relay.dada.it (relay.dada.it [195.110.100.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91DBE43D41 for ; Wed, 10 Mar 2004 19:51:20 -0800 (PST) (envelope-from alasir@supereva.it) Received: from supereva.it (195.110.126.32) by relay.dada.it with SMTP; 11 Mar 2004 04:51:19 +0100 Received: (qmail 4281 invoked by uid 320); 11 Mar 2004 03:51:17 -0000 Date: 11 Mar 2004 03:51:17 -0000 Message-ID: <20040311035117.4280.qmail@mail.supereva.it> Received: from 202.106.182.176 (alasir@supereva.it) by mail.supereva.it with HTTP; Thu Mar 11 04:51:17 2004 X-Originating-IP: [202.106.182.176] From: RMH Organization: Evil Spirits Unlimited, Inc. To: hackers@freebsd.org X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailman-Approved-At: Thu, 11 Mar 2004 05:35:43 -0800 Subject: i386/identcpu.c question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: alasir@supereva.it List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 03:51:21 -0000 Hello hackers, there are several lines in i386/identcpu.c: case 0x600: /* Check the particular flavor of 686 */ switch (cpu_id & 0xf0) { case 0x00: strcat(cpu_model, "Pentium Pro A-step"); break; case 0x10: strcat(cpu_model, "Pentium Pro"); break; case 0x30: case 0x50: case 0x60: strcat(cpu_model, "Pentium II/Pentium II Xeon/Celeron"); cpu = CPU_PII; break; case 0x70: case 0x80: case 0xa0: case 0xb0: strcat(cpu_model, "Pentium III/Pentium III Xeon/Celeron"); cpu = CPU_PIII; break; 0x30 stands for 0.35-micron Klamath core (Pentium II), there were no Celeron or Xeon CPUs produced using it. There was PIIOD, but check for the OverDrive is done separately. By the way, 0x60 stands for Celeron (Mendocino) and mobile Pentium II (Dixon) only; 0x70 -- for Pentium III (Katmai) and Pentium III Xeon (Tanner) only; 0x80 -- for Celeron (Coppermine-128) and Pentium III (Coppermine) only; 0xa0 -- for Pentium III Xeon (Cascades) only; 0xb0 -- for Celeron (Tualatin) and Pentium III (Tualatin) only. case 0x30: strcat(cpu_model, "Pentium II"); cpu = CPU_PII; break; case 0x50: strcat(cpu_model, "Pentium II/Pentium II Xeon/Celeron"); cpu = CPU_PII; break; case 0x60: strcat(cpu_model, "Mobile Pentium II/Celeron"); cpu = CPU_PII; break; case 0x70: strcat(cpu_model, "Pentium III/Pentium III Xeon"); cpu = CPU_PIII; break; case 0x80: strcat(cpu_model, "Pentium III/Celeron"); cpu = CPU_PIII; break; case 0xa0: strcat(cpu_model, "Pentium III Xeon"); cpu = CPU_PIII; break; case 0xb0: strcat(cpu_model, "Pentium III/Celeron"); cpu = CPU_PIII; break; I suppose it doesn't take a lot of code to fix, but it looks much better when a CPU is recognised properly (or close to). --- Regards, Rhett ----------------------------------------------------------- Spazio ILLIMITATO per la tua Email, Scanner Antivirus, Antispam, Backup e POP3. Prova la nuova Email di superEva: http://webmail.supereva.it/ -----------------------------------------------------------