Commit b69024b1 authored by Matthias Braun's avatar Matthias Braun
Browse files

ebx is no problem with pic when compiling in 64bit (but the pushl+popl are)

[r28342]
parent 161f75df
......@@ -740,7 +740,7 @@ typedef union {
static void x86_cpuid(cpuid_registers *regs, unsigned level)
{
#if defined(__GNUC__)
# ifdef __PIC__ // GCC cannot handle EBX in PIC
# if defined(__PIC__) && !defined(__amd64) // GCC cannot handle EBX in PIC
__asm (
"pushl %%ebx\n\t"
"cpuid\n\t"
......
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