From owner-svn-src-head@FreeBSD.ORG Mon Jan 5 21:51:50 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FAEC1065672; Mon, 5 Jan 2009 21:51:50 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6E48FC21; Mon, 5 Jan 2009 21:51:50 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n05Lpoeb012280; Mon, 5 Jan 2009 21:51:50 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n05LpnTJ012276; Mon, 5 Jan 2009 21:51:49 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <200901052151.n05LpnTJ012276@svn.freebsd.org> From: Jung-uk Kim Date: Mon, 5 Jan 2009 21:51:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186797 - in head/sys: amd64/amd64 amd64/include i386/cpufreq X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2009 21:51:51 -0000 Author: jkim Date: Mon Jan 5 21:51:49 2009 New Revision: 186797 URL: http://svn.freebsd.org/changeset/base/186797 Log: Add Centaur/IDT/VIA vendor ID for Nano family, which has long mode support. Modified: head/sys/amd64/amd64/identcpu.c head/sys/amd64/include/cputypes.h head/sys/amd64/include/specialreg.h head/sys/i386/cpufreq/est.c Modified: head/sys/amd64/amd64/identcpu.c ============================================================================== --- head/sys/amd64/amd64/identcpu.c Mon Jan 5 21:00:22 2009 (r186796) +++ head/sys/amd64/amd64/identcpu.c Mon Jan 5 21:51:49 2009 (r186797) @@ -102,6 +102,7 @@ static struct { } cpu_vendors[] = { { INTEL_VENDOR_ID, CPU_VENDOR_INTEL }, /* GenuineIntel */ { AMD_VENDOR_ID, CPU_VENDOR_AMD }, /* AuthenticAMD */ + { CENTAUR_VENDOR_ID, CPU_VENDOR_CENTAUR }, /* CentaurHauls */ }; int cpu_cores; Modified: head/sys/amd64/include/cputypes.h ============================================================================== --- head/sys/amd64/include/cputypes.h Mon Jan 5 21:00:22 2009 (r186796) +++ head/sys/amd64/include/cputypes.h Mon Jan 5 21:51:49 2009 (r186797) @@ -47,7 +47,9 @@ * Vendors of processor. */ #define CPU_VENDOR_AMD 0x1022 /* AMD */ +#define CPU_VENDOR_IDT 0x111d /* Centaur/IDT/VIA */ #define CPU_VENDOR_INTEL 0x8086 /* Intel */ +#define CPU_VENDOR_CENTAUR CPU_VENDOR_IDT #ifndef LOCORE extern int cpu; Modified: head/sys/amd64/include/specialreg.h ============================================================================== --- head/sys/amd64/include/specialreg.h Mon Jan 5 21:00:22 2009 (r186796) +++ head/sys/amd64/include/specialreg.h Mon Jan 5 21:51:49 2009 (r186797) @@ -205,6 +205,7 @@ * CPUID manufacturers identifiers */ #define AMD_VENDOR_ID "AuthenticAMD" +#define CENTAUR_VENDOR_ID "CentaurHauls" #define INTEL_VENDOR_ID "GenuineIntel" /* Modified: head/sys/i386/cpufreq/est.c ============================================================================== --- head/sys/i386/cpufreq/est.c Mon Jan 5 21:00:22 2009 (r186796) +++ head/sys/i386/cpufreq/est.c Mon Jan 5 21:51:49 2009 (r186797) @@ -55,10 +55,6 @@ __FBSDID("$FreeBSD$"); #define MSR_MISC_ENABLE 0x1a0 #define MSR_SS_ENABLE (1<<16) -#ifndef CPU_VENDOR_CENTAUR -#define CPU_VENDOR_CENTAUR 0x111d -#endif - /* Frequency and MSR control values. */ typedef struct { uint16_t freq;