about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-05-31 18:20:40 +0000
committerAndreas Jaeger <aj@suse.de>2001-05-31 18:20:40 +0000
commitc0cf44fae5ce9b1b866099b60c7288f8405869a5 (patch)
treedcd43fa5a208019e6c9482fe66611b237d7a76fd /sysdeps/unix
parentc2cc0483e434ecdf756aacea674d171893b62240 (diff)
downloadglibc-c0cf44fae5ce9b1b866099b60c7288f8405869a5.tar.gz
glibc-c0cf44fae5ce9b1b866099b60c7288f8405869a5.tar.xz
glibc-c0cf44fae5ce9b1b866099b60c7288f8405869a5.zip
greg_t needs to have the same aligment as the kernel structure.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h3
1 files changed, 2 insertions, 1 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 3e22d89aef..d1ae64c0c0 100644
--- a/sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h
+++ b/sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h
@@ -39,7 +39,8 @@ typedef unsigned long greg_t;
    that has the same size as s390_regs. */
 #define NGREG 36
 #define NUM_FPRS 16
-typedef greg_t gregset_t[NGREG];
+/* Must match kernels psw_t alignment */
+typedef greg_t gregset_t[NGREG] __attribute__ ((aligned(8)));
 
 typedef union
 {