forked from Minki/linux
c37b5efea4
On cpu's supporting xsave/xrstor, fpstate pointer in the sigcontext, will include the extended state information along with fpstate information. Presence of extended state information is indicated by the presence of FP_XSTATE_MAGIC1 at fpstate.sw_reserved.magic1 and FP_XSTATE_MAGIC2 at fpstate + (fpstate.sw_reserved.extended_size - FP_XSTATE_MAGIC2_SIZE). Extended feature bit mask that is saved in the memory layout is represented by the fpstate.sw_reserved.xstate_bv For RT signal frames, UC_FP_XSTATE in the uc_flags also indicate the presence of extended state information in the sigcontext's fpstate pointer. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
19 lines
493 B
C
19 lines
493 B
C
#ifndef ASM_X86__UCONTEXT_H
|
|
#define ASM_X86__UCONTEXT_H
|
|
|
|
#define UC_FP_XSTATE 0x1 /* indicates the presence of extended state
|
|
* information in the memory layout pointed
|
|
* by the fpstate pointer in the ucontext's
|
|
* sigcontext struct (uc_mcontext).
|
|
*/
|
|
|
|
struct ucontext {
|
|
unsigned long uc_flags;
|
|
struct ucontext *uc_link;
|
|
stack_t uc_stack;
|
|
struct sigcontext uc_mcontext;
|
|
sigset_t uc_sigmask; /* mask last for extensibility */
|
|
};
|
|
|
|
#endif /* ASM_X86__UCONTEXT_H */
|