[PATCH] 2 tiny fixes

Jakub Jelinek jakub@redhat.com
Fri Apr 7 13:55:00 GMT 2006


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



More information about the Libc-hacker mailing list