From owner-freebsd-stable Mon Oct 29 6:12: 2 2001 Delivered-To: freebsd-stable@freebsd.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by hub.freebsd.org (Postfix) with ESMTP id 5D95B37B403; Mon, 29 Oct 2001 06:11:56 -0800 (PST) Received: from vilnya.demon.co.uk ([158.152.19.238]) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 15yD8i-000ON3-0C; Mon, 29 Oct 2001 14:11:45 +0000 Received: from haveblue (haveblue.rings [10.2.4.5]) by vilnya.demon.co.uk (Postfix) with SMTP id F00C52E824; Mon, 29 Oct 2001 14:09:08 +0000 (GMT) Message-ID: <002101c16083$6ff87260$0504020a@haveblue> From: "cameron grant" To: "John Baldwin" Cc: , , , , , References: Subject: Re: adding athlon xp to bsd.cpu.mk Date: Mon, 29 Oct 2001 14:09:54 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > from what i can see, identcpu.c fetches the cpu name using a cpuid > > instruction. > > The part cpuid gives you is "AuthenticAMD". > The fancy name is determined by switching on the Id. read identcpu.c. you are correct for k6 and lesser processors. the code in question is around line 323: do_cpuid(0x80000000, regs); nreg = regs[0]; if (nreg >= 0x80000004) { do_cpuid(0x80000002, regs); memcpy(cpu_model, regs, sizeof regs); do_cpuid(0x80000003, regs); memcpy(cpu_model+16, regs, sizeof regs); do_cpuid(0x80000004, regs); memcpy(cpu_model+32, regs, sizeof regs); } -cg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message