From: H. Peter Anvin Date: Tue, 26 Aug 2008 05:39:15 +0000 (-0700) Subject: x86: msr: fix bogus return values from rdmsr_safe/wrmsr_safe X-Git-Tag: v2.6.27-rc5~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08970fc4e0385790a7b093adfaa4165a189f9eb0;p=pandora-kernel.git x86: msr: fix bogus return values from rdmsr_safe/wrmsr_safe Impact: bogus error codes (+other?) on x86-64 The rdmsr_safe/wrmsr_safe routines have macros for the handling of the edx:eax arguments. Those macros take a variable number of assembly arguments. This is rather inherently incompatible with using %digit-style escapes in the inline assembly; replace those with %[name]-style escapes. This fixes miscompilation on x86-64, which at the very least caused bogus return values. It is possible that this could also corrupt the return value; I am not sure. Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed