summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-03-03 19:44:20 +0000
committerJeremy Katz <katzj@redhat.com>2004-03-03 19:44:20 +0000
commit79e45a2c922b96caa9cca04cbf46ef0b6be38c9e (patch)
tree84ba249af6a34400dd1ed61cad88690667d1f079 /isys
parent0fb8a61feab767d203a4092512790c97c9c427c9 (diff)
downloadanaconda-79e45a2c922b96caa9cca04cbf46ef0b6be38c9e.tar.gz
anaconda-79e45a2c922b96caa9cca04cbf46ef0b6be38c9e.tar.xz
anaconda-79e45a2c922b96caa9cca04cbf46ef0b6be38c9e.zip
make it build with -fPIC too
Diffstat (limited to 'isys')
-rw-r--r--isys/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isys/smp.c b/isys/smp.c
index b6c2589e1..e193ae70a 100644
--- a/isys/smp.c
+++ b/isys/smp.c
@@ -557,8 +557,8 @@ static inline unsigned int cpuid_ebx(int op)
{
unsigned int eax, ebx;
- __asm__("cpuid"
- : "=a" (eax), "=b" (ebx)
+ __asm__("pushl %%ebx; cpuid; movl %%ebx,%1; popl %%ebx"
+ : "=a" (eax), "=g" (ebx)
: "0" (op)
: "cx", "dx");
return ebx;