]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86/ucontext.h
x86, xsave: keep the XSAVE feature mask as an u64
[linux-2.6-omap-h63xx.git] / include / asm-x86 / ucontext.h
index 175c8cb597317f28866490fc0f1834900d9b410e..89eaa5456a7e1e86f25f92c41bd85d2bc629ec33 100644 (file)
@@ -1,13 +1,18 @@
-#ifdef __KERNEL__
-# ifdef CONFIG_X86_32
-#  include "ucontext_32.h"
-# else
-#  include "ucontext_64.h"
-# endif
-#else
-# ifdef __i386__
-#  include "ucontext_32.h"
-# else
-#  include "ucontext_64.h"
-# endif
-#endif
+#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 */