This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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]

MIPS N32 siginfo fix


The MIPS64 kernel uses the same siginfo structure for N64 and N32 and
only translates the structure for O32, so glibc should match the
kernel for N32; that is, the layout should depend on whether or not
O32, rather than on __WORDSIZE.

This patch fixes many NPTL cancellation test failures for N32.

2006-06-06  Joseph Myers  <joseph@codesourcery.com>

	* sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_PAD_SIZE): Use
	smaller value for N32 as well as N64.

Index: sysdeps/unix/sysv/linux/mips/bits/siginfo.h
===================================================================
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/bits/siginfo.h,v
retrieving revision 1.12
diff -u -r1.12 siginfo.h
--- sysdeps/unix/sysv/linux/mips/bits/siginfo.h	28 Mar 2005 09:17:43 -0000	1.12
+++ sysdeps/unix/sysv/linux/mips/bits/siginfo.h	6 Jun 2006 12:14:14 -0000
@@ -43,7 +43,7 @@
 # define __have_siginfo_t	1
 
 # define __SI_MAX_SIZE		128
-# if __WORDSIZE == 64
+# if _MIPS_SIM != _ABIO32
 #  define __SI_PAD_SIZE		((__SI_MAX_SIZE / sizeof (int)) - 4)
 # else
 #  define __SI_PAD_SIZE		((__SI_MAX_SIZE / sizeof (int)) - 3)

-- 
Joseph S. Myers
joseph@codesourcery.com


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