[TRIVIAL] nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
"Hu, Boris" <[email protected]> Sat, 22 Nov 2003 19:10:17 +0800
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <37FBBA5F3A361C41AB7CE44558C3448E02775B06@pdsmsx403.ccr.corp.intel.com> |
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. ************************************