diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2009-04-10 15:21:24 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-12 13:08:56 +0200 |
commit | a30469e7921a6dd2067e9e836d7787cfa0105627 (patch) | |
tree | 6a5418033c233648b436610a6f6730f37ba80144 /arch/x86/include/asm/sigcontext.h | |
parent | 1ee4bd92a7aa49eb66c8d5672e837090d3e7b7ff (diff) | |
download | kernel_samsung_crespo-a30469e7921a6dd2067e9e836d7787cfa0105627.zip kernel_samsung_crespo-a30469e7921a6dd2067e9e836d7787cfa0105627.tar.gz kernel_samsung_crespo-a30469e7921a6dd2067e9e836d7787cfa0105627.tar.bz2 |
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/sigcontext.h')
-rw-r--r-- | arch/x86/include/asm/sigcontext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/sigcontext.h b/arch/x86/include/asm/sigcontext.h index ec66649..72e5a44 100644 --- a/arch/x86/include/asm/sigcontext.h +++ b/arch/x86/include/asm/sigcontext.h @@ -269,6 +269,11 @@ struct _xsave_hdr { __u64 reserved2[5]; }; +struct _ymmh_state { + /* 16 * 16 bytes for each YMMH-reg */ + __u32 ymmh_space[64]; +}; + /* * Extended state pointed by the fpstate pointer in the sigcontext. * In addition to the fpstate, information encoded in the xstate_hdr @@ -278,6 +283,7 @@ struct _xsave_hdr { struct _xstate { struct _fpstate fpstate; struct _xsave_hdr xstate_hdr; + struct _ymmh_state ymmh; /* new processor state extensions go here */ }; |