From owner-svn-src-head@FreeBSD.ORG Sun Nov 4 13:46:28 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC4AD26D; Sun, 4 Nov 2012 13:46:28 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 941B48FC12; Sun, 4 Nov 2012 13:46:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id qA4DkSqX000617; Sun, 4 Nov 2012 13:46:28 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id qA4DkSRa000615; Sun, 4 Nov 2012 13:46:28 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201211041346.qA4DkSRa000615@svn.freebsd.org> From: Andriy Gapon Date: Sun, 4 Nov 2012 13:46:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242565 - head/sys/dev/cpuctl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 04 Nov 2012 13:46:28 -0000 Author: avg Date: Sun Nov 4 13:46:28 2012 New Revision: 242565 URL: http://svn.freebsd.org/changeset/base/242565 Log: cpuctl_do_cpuid: explicitly use ecx=0 for cpuid call ... instead of whatever random value may happen to be in the register. ecx is important to some cpuid leaves. To do: extend cpuctl interface to provide for ecx value parameter. MFC after: 5 days Modified: head/sys/dev/cpuctl/cpuctl.c Modified: head/sys/dev/cpuctl/cpuctl.c ============================================================================== --- head/sys/dev/cpuctl/cpuctl.c Sun Nov 4 13:42:34 2012 (r242564) +++ head/sys/dev/cpuctl/cpuctl.c Sun Nov 4 13:46:28 2012 (r242565) @@ -204,7 +204,7 @@ cpuctl_do_cpuid(int cpu, cpuctl_cpuid_ar oldcpu = td->td_oncpu; is_bound = cpu_sched_is_bound(td); set_cpu(cpu, td); - do_cpuid(data->level, data->data); + cpuid_count(data->level, 0, data->data); restore_cpu(oldcpu, is_bound, td); return (0); }