This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] 2 tiny fixes


Hi!

Sorry for posting 2 unrelated things together:
1) there was a typo in unwind-dw2.c change
2) 2.6.17 kernel defines FUTEX_TID_MASK as 0x3fffffff,
   so NPTL should do the same

2006-04-07  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/generic/unwind-dw2.c (execute_cfa_program): Fix typo in
	the last change.

	* pthreadP.h (FUTEX_TID_MASK): Sync with kernel.

--- libc/sysdeps/generic/unwind-dw2.c.jj	2006-04-07 12:51:01.000000000 +0200
+++ libc/sysdeps/generic/unwind-dw2.c	2006-04-07 12:56:21.000000000 +0200
@@ -900,7 +900,7 @@ execute_cfa_program (const unsigned char
 	  /* ??? Hardcoded for SPARC register window configuration.
 	     At least do not do anything for archs which explicitly
 	     define a lower register number.  */
-#if DWARF_FRAME_REGISTERS < 32
+#if DWARF_FRAME_REGISTERS >= 32
 	  for (reg = 16; reg < 32; ++reg)
 	    {
 	      fs->regs.reg[reg].how = REG_SAVED_OFFSET;
--- libc/nptl/pthreadP.h.jj	2006-03-28 09:13:36.000000000 +0200
+++ libc/nptl/pthreadP.h	2006-04-07 12:57:21.000000000 +0200
@@ -90,7 +90,7 @@ enum
 /* Bits used in robust mutex implementation.  */
 #define FUTEX_WAITERS		0x80000000
 #define FUTEX_OWNER_DIED	0x40000000
-#define FUTEX_TID_MASK		0x1fffffff
+#define FUTEX_TID_MASK		0x3fffffff
 
 
 /* Internal variables.  */

	Jakub


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