Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit e58fc44649d07d523fcd17aa10d9eb0d3a5ef3f4)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -45,7 +45,7 @@ |
45 | 45 |
"cpuid \n\t" \ |
46 | 46 |
"xchg %%"REG_b", %%"REG_S \ |
47 | 47 |
: "=a" (eax), "=S" (ebx), "=c" (ecx), "=d" (edx) \ |
48 |
- : "0" (index)) |
|
48 |
+ : "0" (index), "2"(0)) |
|
49 | 49 |
|
50 | 50 |
#define xgetbv(index, eax, edx) \ |
51 | 51 |
__asm__ (".byte 0x0f, 0x01, 0xd0" : "=a"(eax), "=d"(edx) : "c" (index)) |