[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[TRIVIAL] nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h



All the codes to call lll_futex_wait()/lll_futex_wake() have passed the address of futex. So just like what other arches did, we will use futex directly. Do I miss sth? 

nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h

--- lowlevellock.h.orig	2003-11-22 02:46:53.000000000 -0800
+++ lowlevellock.h	2003-11-22 03:01:25.000000000 -0800
@@ -69,7 +69,7 @@
 		      LLL_ENTER_KERNEL					      					\
 		      LLL_EBX_LOAD					      							\
 		      : "=a" (__ignore)					      					\
-		      : "0" (SYS_futex), LLL_EBX_REG (&futex), "S" (0),	    \
+		      : "0" (SYS_futex), LLL_EBX_REG (futex), "S" (0),	    \
 			"c" (FUTEX_WAIT), "d" (_val),			      				\
 			"i" (offsetof (tcbhead_t, sysinfo)));		      			\
   } while (0)
@@ -83,7 +83,7 @@
 		      LLL_ENTER_KERNEL					      					\
 		      LLL_EBX_LOAD					      							\
 		      : "=a" (__ignore)					      					\
-		      : "0" (SYS_futex), LLL_EBX_REG (&futex),		      		\
+		      : "0" (SYS_futex), LLL_EBX_REG (futex),		      		\
 			"c" (FUTEX_WAKE), "d" (_nr),			      				\
 			"i" (0) /* phony, to align next arg's number */,      	\
 			"i" (offsetof (tcbhead_t, sysinfo)));		      			\


Good Luck !
?
Boris Hu
(Hu Jiangtao)
Software Engineer ICSL
86-021-5257-4545#1277
************************************
There are my thoughts, not?my employer's.
************************************




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]