Commit 2ff83248 authored by Sam Hocevar's avatar Sam Hocevar

* src/misc/cpu.c: no need to push/pop %rbx before cpuid on x86_64.

parent e8b1a9f8
......@@ -86,10 +86,8 @@ uint32_t CPUCapabilities( void )
/* Needed for x86 CPU capabilities detection */
# if defined( __x86_64__ )
# define cpuid( reg ) \
asm volatile ( "push %%rbx\n\t" \
"cpuid\n\t" \
asm volatile ( "cpuid\n\t" \
"movl %%ebx,%1\n\t" \
"pop %%rbx\n\t" \
: "=a" ( i_eax ), \
"=r" ( i_ebx ), \
"=c" ( i_ecx ), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment