From 1ee0274dbf4979f4df8c8b7de780f13ae7e10cea Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Mon, 1 Mar 2010 11:35:54 +0100 Subject: [PATCH] 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 --- sys-utils/lscpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index c200fb32..77a3e5c2 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 -- 2.39.5