Suresh Siddha | dc1e35c | 2008-07-29 10:29:19 -0700 | [diff] [blame^] | 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 |