aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2012-11-04 13:46:28 +0000
committerAndriy Gapon <avg@FreeBSD.org>2012-11-04 13:46:28 +0000
commite21e29d716aafbd18e6da2df7242da3bbeb24e0c (patch)
treebce90d01cd9180ee570fea1dd2bb187d375ff85a /sys/dev
parent90af57930c1b6f12aad552887a0bf6cfc93f4d3c (diff)
downloadsrc-e21e29d716aafbd18e6da2df7242da3bbeb24e0c.tar.gz
src-e21e29d716aafbd18e6da2df7242da3bbeb24e0c.zip
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
Notes
Notes: svn path=/head/; revision=242565
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cpuctl/cpuctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cpuctl/cpuctl.c b/sys/dev/cpuctl/cpuctl.c
index 15534570ff9c..742fa108757a 100644
--- a/sys/dev/cpuctl/cpuctl.c
+++ b/sys/dev/cpuctl/cpuctl.c
@@ -204,7 +204,7 @@ cpuctl_do_cpuid(int cpu, cpuctl_cpuid_args_t *data, struct thread *td)
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);
}