]> err.no Git - util-linux/commitdiff
lscpu: fix cpuid opcode detection
authorHenne Vogelsang <hvogel@opensuse.org>
Mon, 1 Mar 2010 10:35:54 +0000 (11:35 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Mar 2010 11:46:22 +0000 (12:46 +0100)
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>
sys-utils/lscpu.c

index c200fb32f455a1a04c86a49f738030988ca097ab..77a3e5c28d2ff21ba2692c109d9d1b31d00cf8b8 100644 (file)
@@ -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