diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 12:33:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 12:33:04 +0100 |
commit | 537492c40116a8f38c209f7b36dacd0562504b44 (patch) | |
tree | 79a632ca61a94ab725e3945e8eab056ce989887d /src/libcryptobox | |
parent | af88538583df1a0f24ba3df26e77dc046684d60f (diff) | |
download | rspamd-537492c40116a8f38c209f7b36dacd0562504b44.tar.gz rspamd-537492c40116a8f38c209f7b36dacd0562504b44.zip |
Fix i386 cpuid invocation.
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/cryptobox.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 9bfb2946c..e4a17f7d4 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)); |