blob: 6d70e62c6bdc1a3c9878bd1cc6225b6a5265b58a [file] [log] [blame]
Suresh Siddhadc1e35c2008-07-29 10:29:19 -07001#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
20extern unsigned int xstate_size, pcntxt_hmask, pcntxt_lmask;
21extern struct xsave_struct *init_xstate_buf;
22
23extern void xsave_cntxt_init(void);
24extern void xsave_init(void);
25
26#endif