]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add definition of _libc_fpreg and _libc_fpstate and use it to define
authorUlrich Drepper <drepper@redhat.com>
Sun, 20 Feb 2000 02:58:31 +0000 (02:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 20 Feb 2000 02:58:31 +0000 (02:58 +0000)
fpregset_t.

sysdeps/unix/sysv/linux/i386/sys/ucontext.h

index a90078ce9c8a4d458a82fa3784db72447737aef1..89264111d400163b872588ca9698cbf82b8c68fa 100644 (file)
@@ -85,8 +85,28 @@ enum
 };
 #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
@@ -107,7 +127,7 @@ typedef struct ucontext
     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 */