This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PPC32 struct vrregset_t in ucontext.h is incorrect.


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.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]