summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorHenne Vogelsang2010-03-01 11:35:54 +0100
committerKarel Zak2010-03-01 11:35:54 +0100
commitbc54770d9e25aa8732f571d97dd950982114dc08 (patch)
treea6a373af81c9eb3a4d2e563d3063212da6299ef1 /sys-utils/lscpu.c
parentldattach: prints help to stdout (diff)
downloadkernel-qcow2-util-linux-bc54770d9e25aa8732f571d97dd950982114dc08.tar.gz
kernel-qcow2-util-linux-bc54770d9e25aa8732f571d97dd950982114dc08.tar.xz
kernel-qcow2-util-linux-bc54770d9e25aa8732f571d97dd950982114dc08.zip
lscpu: fix cpuid opcode detection
Fixes commit c9239f23acdc8b50f8bcbfadf967c6a490fd4693. The author didn't care for matching constraints when resorting the register constraints. The eax register (with the cpuid opcode) is now in operand 1, not zero anymore. Signed-off-by: Henne Vogelsang <hvogel@opensuse.org>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r--sys-utils/lscpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index c200fb32f..77a3e5c28 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -360,7 +360,7 @@ cpuid(unsigned int op, unsigned int *eax, unsigned int *ebx,
"=a" (*eax),
"=c" (*ecx),
"=d" (*edx)
- : "0" (op), "c"(0));
+ : "1" (op), "c"(0));
}
static void