Date: Tue, 13 Jan 2009 16:48:01 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r187157 - head/sys/i386/i386 Message-ID: <200901131648.n0DGm1Q8009159@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <machine/frame.h> #include <machine/intr_machdep.h> #include <machine/apicvar.h> +#include <machine/specialreg.h> #include <dev/pci/pcivar.h> /* 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901131648.n0DGm1Q8009159>