From owner-svn-src-head@FreeBSD.ORG Tue Jan 13 16:48:01 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 CE8A51065673; Tue, 13 Jan 2009 16:48:01 +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 BC3D18FC0C; Tue, 13 Jan 2009 16:48:01 +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 n0DGm1NM009160; Tue, 13 Jan 2009 16:48:01 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0DGm1Q8009159; Tue, 13 Jan 2009 16:48:01 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <200901131648.n0DGm1Q8009159@svn.freebsd.org> From: Jung-uk Kim Date: Tue, 13 Jan 2009 16:48:01 +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: r187157 - head/sys/i386/i386 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: Tue, 13 Jan 2009 16:48:02 -0000 Author: jkim Date: Tue Jan 13 16:48:01 2009 New Revision: 187157 URL: http://svn.freebsd.org/changeset/base/187157 Log: Enable MSI support for VIA Nano processors on i386 (missing in r187118). Modified: head/sys/i386/i386/msi.c Modified: head/sys/i386/i386/msi.c ============================================================================== --- head/sys/i386/i386/msi.c Tue Jan 13 16:44:18 2009 (r187156) +++ head/sys/i386/i386/msi.c Tue Jan 13 16:48:01 2009 (r187157) @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include /* Fields in address for Intel MSI messages. */ @@ -212,9 +213,18 @@ msi_init(void) { /* Check if we have a supported CPU. */ - if (!(cpu_vendor_id == CPU_VENDOR_INTEL || - cpu_vendor_id == CPU_VENDOR_AMD)) + switch (cpu_vendor_id) { + case CPU_VENDOR_INTEL: + case CPU_VENDOR_AMD: + break; + case CPU_VENDOR_CENTAUR: + if (I386_CPU_FAMILY(cpu_id) == 0x6 && + I386_CPU_MODEL(cpu_id) >= 0xf) + break; + /* FALLTHROUGH */ + default: return; + } msi_enabled = 1; intr_register_pic(&msi_pic);