diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-05-10 16:41:41 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-05-10 16:41:41 -0400 |
commit | dce8bf4e115aa44d590802ce3554e926840c9042 (patch) | |
tree | 9ad06695bb99cd815152ec61dce75fd5a792b1bf /arch | |
parent | c3f8978ea332cd4be88e12574452a025892ac9af (diff) |
x86, fpu: Use the proper asm constraint in use_xsave()
The proper constraint for a receiving 8-bit variable is "=qm", not
"=g" which equals "=rim"; even though the "i" will never match, bugs
can and do happen due to the difference between "q" and "r".
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <1273135546-29690-2-git-send-email-avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/i387.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/i387.h b/arch/x86/include/asm/i387.h index 1a8cca33b736..8002e9ce25fc 100644 --- a/arch/x86/include/asm/i387.h +++ b/arch/x86/include/asm/i387.h | |||
@@ -64,7 +64,7 @@ static inline bool use_xsave(void) | |||
64 | alternative_io("mov $0, %0", | 64 | alternative_io("mov $0, %0", |
65 | "mov $1, %0", | 65 | "mov $1, %0", |
66 | X86_FEATURE_XSAVE, | 66 | X86_FEATURE_XSAVE, |
67 | "=g"(has_xsave)); | 67 | "=qm" (has_xsave)); |
68 | 68 | ||
69 | return has_xsave; | 69 | return has_xsave; |
70 | } | 70 | } |