]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/include/asm/xsave.h
x86: add linux kernel support for YMM state
[karo-tx-linux.git] / arch / x86 / include / asm / xsave.h
index 08e9a1ac07a94492a84dce3e071270c44b683b86..727acc152344b1a28c4cc0fa57d0bc078070cd60 100644 (file)
@@ -7,6 +7,7 @@
 
 #define XSTATE_FP      0x1
 #define XSTATE_SSE     0x2
+#define XSTATE_YMM     0x4
 
 #define XSTATE_FPSSE   (XSTATE_FP | XSTATE_SSE)
 
@@ -15,7 +16,7 @@
 /*
  * These are the features that the OS can handle currently.
  */
-#define XCNTXT_MASK    (XSTATE_FP | XSTATE_SSE)
+#define XCNTXT_MASK    (XSTATE_FP | XSTATE_SSE | XSTATE_YMM)
 
 #ifdef CONFIG_X86_64
 #define REX_PREFIX     "0x48, "