};
#endif
+/* Definitions taken from the kernel headers. */
+struct _libc_fpreg
+{
+ unsigned short int significand[4];
+ unsigned short int exponent;
+};
+
+struct _libc_fpstate
+{
+ unsigned long int cw;
+ unsigned long int sw;
+ unsigned long int tag;
+ unsigned long int ipoff;
+ unsigned long int cssel;
+ unsigned long int dataoff;
+ unsigned long int datasel;
+ struct _libc_fpreg _st[8];
+ unsigned long int status;
+};
+
/* Structure to describe FPU registers. */
-typedef struct user_fpregs_struct fpregset_t;
+typedef struct _libc_fpstate *fpregset_t;
/* Context to describe whole processor state. */
typedef struct
stack_t uc_stack;
mcontext_t uc_mcontext;
__sigset_t uc_sigmask;
- fpregset_t __fpregs_mem;
+ struct _libc_fpstate __fpregs_mem;
} ucontext_t;
#endif /* sys/ucontext.h */