mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
fix bug #609 - error: PIC register bx' clobbered in asm'
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
1 parent
9a74026a08
commit
cfca4d6941
1 file changed
+2
-2
@@ -1369,10 +1369,10 @@ static inline unsigned int cpuid_edx(unsigned int op)
|
||||
{
|
||||
unsigned int eax, edx;
|
||||
|
||||
__asm__("cpuid"
|
||||
__asm__("pushl %%ebx; cpuid; popl %%ebx"
|
||||
: "=a" (eax), "=d" (edx)
|
||||
: "0" (op)
|
||||
: "bx", "cx");
|
||||
: "cx");
|
||||
|
||||
return edx;
|
||||
}
|
||||
|
||||