aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/xsave.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/xsave.h')
-rw-r--r--arch/x86/include/asm/xsave.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86/include/asm/xsave.h b/arch/x86/include/asm/xsave.h
index 0c72adc0cb15..ec86c5fd6a6e 100644
--- a/arch/x86/include/asm/xsave.h
+++ b/arch/x86/include/asm/xsave.h
@@ -125,8 +125,11 @@ static inline void fpu_xsave(struct fpu *fpu)
125{ 125{
126 /* This, however, we can work around by forcing the compiler to select 126 /* This, however, we can work around by forcing the compiler to select
127 an addressing mode that doesn't require extended registers. */ 127 an addressing mode that doesn't require extended registers. */
128 __asm__ __volatile__(".byte " REX_PREFIX "0x0f,0xae,0x27" 128 alternative_input(
129 : : "D" (&(fpu->state->xsave)), 129 ".byte " REX_PREFIX "0x0f,0xae,0x27",
130 "a" (-1), "d"(-1) : "memory"); 130 ".byte " REX_PREFIX "0x0f,0xae,0x37",
131 X86_FEATURE_XSAVEOPT,
132 [fx] "D" (&fpu->state->xsave), "a" (-1), "d" (-1) :
133 "memory");
131} 134}
132#endif 135#endif