From dcb0c68ed3ce496e3abb7e46a3f624170872e779 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Fri, 23 Jan 2015 17:26:43 +0300 Subject: [PATCH] fix for -m32 --- modules/core/src/system.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index b6f3466..2590f21 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -293,14 +293,13 @@ struct HWFeatures #else asm volatile ( - "pushl %%eax\n\t" - "pushl %%edx\n\t" + "pushl %%ebx\n\t" "movl $7,%%eax\n\t" "movl $0,%%ecx\n\t" "cpuid\n\t" - "popl %%edx\n\t" - "popl %%eax\n\t" - : "=b"(cpuid_data[1]), "=c"(cpuid_data[2]) + "movl %%ebx, %0\n\t" + "popl %%ebx\n\t" + : "=r"(cpuid_data[1]), "=c"(cpuid_data[2]) : : "cc" ); -- 2.7.4