From: Ulrich Drepper Date: Sun, 20 Feb 2000 02:58:31 +0000 (+0000) Subject: Add definition of _libc_fpreg and _libc_fpstate and use it to define X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0850e9d13dcd741ff070a9b48eb96fb9d574a944;p=thirdparty%2Fglibc.git Add definition of _libc_fpreg and _libc_fpstate and use it to define fpregset_t. --- diff --git a/sysdeps/unix/sysv/linux/i386/sys/ucontext.h b/sysdeps/unix/sysv/linux/i386/sys/ucontext.h index a90078ce9c8..89264111d40 100644 --- a/sysdeps/unix/sysv/linux/i386/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/i386/sys/ucontext.h @@ -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 */