This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC32 struct vrregset_t in ucontext.h is incorrect.
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha at sources dot redhat dot com, Paul Mackerras <paulus at samba dot org>, Benjamin Herrenschmidt <benh at kernel dot crashing dot org>
- Date: Wed, 17 Dec 2003 12:33:35 -0600
- Subject: [PATCH] PPC32 struct vrregset_t in ucontext.h is incorrect.
- Organization: IBM LTC
- Reply-to: sjmunroe at vnet dot ibm dot com
The struct vrregset_t in ucontext.h does not match the layoyut of VRSAVE
and VSCR that is actually stored by the 2.6.0 kernel. Since 2.6.0 is
the first kernel to include this state is safe to correct this error
without versioning.
2003-12-16 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Correct definition of
vrregset_t;
diff -urN libc23-cvstip-20031216/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h libc23/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
--- libc23-cvstip-20031216/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h 2003-09-23 22:20:55.000000000 -0500
+++ libc23/sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h 2003-12-16 16:17:20.625015720 -0600
@@ -47,9 +47,9 @@
typedef struct _libc_vrstate
{
unsigned int vrregs[32][4];
- unsigned int vscr;
unsigned int vrsave;
unsigned int _pad[2];
+ unsigned int vscr;
} vrregset_t;
/* Context to describe whole processor state. */