PATCH: Use LP_OP(cmp) on NWAITERS
H.J. Lu
hongjiu.lu@intel.com
Tue May 15 16:43:00 GMT 2012
Hi,
NWAITERS is nwaiters in:
/* Semaphore variable structure. */
struct new_sem
{
unsigned int value;
int private;
unsigned long int nwaiters;
};
This patch use LP_OP(cmp) on NWAITERS. Tested on Linux/x86-64. OK
to install?
Thanks.
H.J.
--
* sysdeps/unix/sysv/linux/x86_64/sem_post.S: Use LP_OP(cmp) on
NWAITERS, which is unsigned long int.
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S
index 0e0898c..65e715d 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S
@@ -45,7 +45,7 @@ sem_post:
#endif
jnz 0b
- cmpq $0, NWAITERS(%rdi)
+ LP_OP(cmp) $0, NWAITERS(%rdi)
je 2f
movl $SYS_futex, %eax
More information about the Libc-alpha
mailing list