diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2009-04-11 00:21:24 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-12 13:08:56 +0200 |
commit | a30469e7921a6dd2067e9e836d7787cfa0105627 (patch) | |
tree | 6a5418033c233648b436610a6f6730f37ba80144 /arch/x86/include/asm/xsave.h | |
parent | x86: fix wrong section of pat_disable & make it static (diff) | |
download | linux-a30469e7921a6dd2067e9e836d7787cfa0105627.tar.xz linux-a30469e7921a6dd2067e9e836d7787cfa0105627.zip |
x86: add linux kernel support for YMM state
Impact: save/restore Intel-AVX state properly between tasks
Intel Advanced Vector Extensions (AVX) introduce 256-bit vector processing
capability. More about AVX at http://software.intel.com/sites/avx
Add OS support for YMM state management using xsave/xrstor infrastructure
to support AVX.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <1239402084.27006.8057.camel@localhost.localdomain>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/xsave.h')
-rw-r--r-- | arch/x86/include/asm/xsave.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/xsave.h b/arch/x86/include/asm/xsave.h index 08e9a1ac07a9..727acc152344 100644 --- a/arch/x86/include/asm/xsave.h +++ b/arch/x86/include/asm/xsave.h @@ -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, " |