]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-x86/xsave.h
6d70e62c6bdc1a3c9878bd1cc6225b6a5265b58a
[linux-2.6-omap-h63xx.git] / include / asm-x86 / xsave.h
1 #ifndef __ASM_X86_XSAVE_H
2 #define __ASM_X86_XSAVE_H
3
4 #include <asm/processor.h>
5 #include <asm/i387.h>
6
7 #define XSTATE_FP       0x1
8 #define XSTATE_SSE      0x2
9
10 #define XSTATE_FPSSE    (XSTATE_FP | XSTATE_SSE)
11
12 #define FXSAVE_SIZE     512
13
14 /*
15  * These are the features that the OS can handle currently.
16  */
17 #define XCNTXT_LMASK    (XSTATE_FP | XSTATE_SSE)
18 #define XCNTXT_HMASK    0x0
19
20 extern unsigned int xstate_size, pcntxt_hmask, pcntxt_lmask;
21 extern struct xsave_struct *init_xstate_buf;
22
23 extern void xsave_cntxt_init(void);
24 extern void xsave_init(void);
25
26 #endif