Suresh Siddha 04944b793e x86: xsave: set FP, SSE bits in the xsave header in the user sigcontext
If a processor implementation discern that a processor state component is in
its initialized state, it may modify the corresponding bit in the
xsave header.xstate_bv as '0'. State in the memory layout setup by 'xsave'
will be consistent with the bit values in the header.

During signal handling, legacy applications may change the FP/SSE bits
in the sigcontext memory layout without touching the FP/SSE header bits
in the xsave header. So always set FP/SSE bits in the xsave header
while saving the sigcontext state to the user space. During signal return,
this will enable the kernel to capture any changes to the FP/SSE bits by the
legacy applications which don't touch xsave headers.

xsave aware apps can change the xstate_bv in the xsave header aswell
as change any contents in the memory layout. xrestor as part of sigreturn
will capture all the changes.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-07 14:36:08 -07:00
..
2008-09-04 09:04:45 -07:00
2008-07-24 10:47:22 -07:00
2007-10-11 11:17:24 +02:00
2008-07-18 14:35:14 +02:00
2007-10-19 11:53:33 -07:00
2007-10-13 10:01:23 -07:00
2008-01-30 13:31:31 +01:00
2008-07-20 09:18:17 +02:00
2008-01-30 13:31:19 +01:00
2008-07-23 18:00:30 -07:00
2008-07-23 17:55:22 -07:00
2008-07-27 21:43:11 +02:00
2008-07-08 13:16:14 +02:00
2008-08-14 13:23:45 +02:00
2008-04-26 17:35:47 +02:00
2008-01-30 13:33:10 +01:00
2008-07-16 10:54:39 +02:00
2007-10-11 11:17:24 +02:00
2008-04-19 19:19:54 +02:00
2008-04-27 12:00:28 +03:00
2008-08-15 08:35:43 -07:00
2008-07-26 12:00:04 -07:00
2008-07-16 12:15:17 -07:00
2008-06-12 18:05:42 -07:00
2008-09-04 09:04:45 -07:00
2008-07-06 14:01:50 +02:00
2008-07-16 12:15:17 -07:00
2008-07-26 16:31:35 +02:00
2008-07-22 21:53:53 +02:00
2008-01-30 13:31:52 +01:00
2008-08-21 10:01:52 +02:00
2007-10-11 11:17:24 +02:00
2008-05-25 08:58:24 +02:00