From a0a2faefdefbea63669dfeb49f7e701196ab5631 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 27 Feb 2013 22:26:19 +0000 Subject: sna: Fix syntax for __get_cpuid() It is a function not a macro like cpuid() and takes pointers to its arguments! Signed-off-by: Chris Wilson --- src/sna/sna_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sna/sna_cpu.c') diff --git a/src/sna/sna_cpu.c b/src/sna/sna_cpu.c index ce69a39c..9e3d9657 100644 --- a/src/sna/sna_cpu.c +++ b/src/sna/sna_cpu.c @@ -44,7 +44,7 @@ unsigned sna_cpu_detect(void) unsigned int eax, ebx, ecx, edx; unsigned features = 0; - if (__get_cpuid(1, eax, ebx, ecx, edx)) { + if (__get_cpuid(1, &eax, &ebx, &ecx, &edx)) { if (eax & bit_SSE3) features |= SSE3; @@ -70,7 +70,7 @@ unsigned sna_cpu_detect(void) features |= SSE2; } - if (__get_cpuid(7, eax, ebx, ecx, edx)) { + if (__get_cpuid(7, &eax, &ebx, &ecx, &edx)) { if (eax & bit_AVX2) features |= AVX2; } -- cgit v1.2.3