Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143125
b: refs/heads/master
c: a30469e
h: refs/heads/master
i:
  143123: 513bd6c
v: v3
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Apr 12, 2009
1 parent fa41845 commit 5a9ea59
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ee4bd92a7aa49eb66c8d5672e837090d3e7b7ff
refs/heads/master: a30469e7921a6dd2067e9e836d7787cfa0105627
6 changes: 6 additions & 0 deletions trunk/arch/x86/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ struct i387_soft_struct {
u32 entry_eip;
};

struct ymmh_struct {
/* 16 * 16 bytes for each YMMH-reg = 256 bytes */
u32 ymmh_space[64];
};

struct xsave_hdr_struct {
u64 xstate_bv;
u64 reserved1[2];
Expand All @@ -361,6 +366,7 @@ struct xsave_hdr_struct {
struct xsave_struct {
struct i387_fxsave_struct i387;
struct xsave_hdr_struct xsave_hdr;
struct ymmh_struct ymmh;
/* new processor state extensions will go here */
} __attribute__ ((packed, aligned (64)));

Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/x86/include/asm/sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
};

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/x86/include/asm/xsave.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#define XSTATE_FP 0x1
#define XSTATE_SSE 0x2
#define XSTATE_YMM 0x4

#define XSTATE_FPSSE (XSTATE_FP | XSTATE_SSE)

Expand All @@ -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, "
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ void __ref xsave_cntxt_init(void)
}

/*
* for now OS knows only about FP/SSE
* Support only the state known to OS.
*/
pcntxt_mask = pcntxt_mask & XCNTXT_MASK;
xsave_init();
Expand Down

0 comments on commit 5a9ea59

Please sign in to comment.