diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-16 05:39:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-16 05:39:18 +0000 |
commit | 8e2949409cf808df820797b56ec32cc7108fd3c2 (patch) | |
tree | c92225de52230a24fe48295fd43289825ba5c58c /sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h | |
parent | 1fc0e33153186a90140c3d25f5d9b4537890d7cc (diff) | |
download | glibc-8e2949409cf808df820797b56ec32cc7108fd3c2.tar.gz glibc-8e2949409cf808df820797b56ec32cc7108fd3c2.tar.xz glibc-8e2949409cf808df820797b56ec32cc7108fd3c2.zip |
Update.
2001-08-14 Tom Rix <trix@redhat.com> * iconv/gconv_cache.c (find_module): Add #ifndef STATIC_GCONV. * iconv/Makefile: Fix gconv_cache.c CFLAGS. 2001-08-13 Tom Rix <trix@redhat.com> * sysdeps/unix/sysv/aix/Makefile: Add rule to import kernel symbols. * sysdeps/unix/sysv/aix/bits/types.h: Fix type of __id_t, __useconds_t and __intptr_t. 2001-08-15 Martin Schwidefsky <schwidefsky@de.ibm.com> * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S (__getcontext): Store the access registers to the ucontext structure. * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S (__getcontext): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S (__setcontext): Load the access registers from the ucontext structure. * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S (__setcontext): Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h: Adjust the SC_xxx offsets to the new ucontext layout. * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Fix the layout of the ucontext structure. * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h b/sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h index a47e247c53..d59b885f15 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h @@ -29,18 +29,19 @@ typedef struct ucontext ucontext_t; included in <signal.h>. */ #include <bits/sigcontext.h> +/* Type for a program status word. */ +typedef struct +{ + unsigned long mask; + unsigned long addr; +} __psw_t __attribute__ ((aligned(8)));; /* Type for a general-purpose register. */ typedef unsigned long greg_t; -/* And the whole bunch of them. We should have used `struct s390_regs', - but to avoid name space pollution and since the tradition says that - the register set is an array, we make gregset_t a simple array - that has the same size as s390_regs. */ -#define NGREG 36 -#define NUM_FPRS 16 -/* Must match kernels psw_t alignment */ -typedef greg_t gregset_t[NGREG] __attribute__ ((aligned(8))); +#define NGREG 16 + +typedef greg_t gregset_t[NGREG]; typedef union { @@ -51,14 +52,15 @@ typedef union /* Register set for the floating-point registers. */ typedef struct { unsigned int fpc; - fpreg_t fprs[NUM_FPRS]; + fpreg_t fprs[16]; } fpregset_t; /* Context to describe whole processor state. */ typedef struct { - int version; + __psw_t psw; gregset_t gregs; + unsigned int aregs[16]; fpregset_t fpregs; } mcontext_t; @@ -67,10 +69,9 @@ struct ucontext { unsigned long int uc_flags; struct ucontext *uc_link; - __sigset_t uc_sigmask; stack_t uc_stack; mcontext_t uc_mcontext; - long int uc_filler[170]; + __sigset_t uc_sigmask; }; |