From: Vsevolod Stakhov Date: Tue, 26 May 2015 11:33:04 +0000 (+0100) Subject: Fix i386 cpuid invocation. X-Git-Tag: 1.0.0~612 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=537492c40116a8f38c209f7b36dacd0562504b44;p=thirdparty%2Frspamd.git Fix i386 cpuid invocation. --- diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 9bfb2946c1..e4a17f7d4b 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -89,14 +89,8 @@ rspamd_cryptobox_cpuid (gint cpu[4], gint info) # if defined(HAVE_GET_CPUID) __get_cpuid (info, &cpu[0], &cpu[1], &cpu[2], &cpu[3]); # else - __asm__ __volatile__ ( - "cpuid": - "=a" (cpu[0]), - "=b" (cpu[1]), - "=c" (cpu[2]), - "=d" (cpu[3]) : - "a" (info), "c" (0) - ); + __asm ("cpuid" : "=a"(cpu[0]), "=b" (cpu[1]), "=c"(cpu[2]), "=d"(cpu[3]) + : "0"(info)); # endif #else memset (cpu, 0, sizeof (cpu));